Skip to content

Commit 3e50748

Browse files
committed
add freebsd for platform helper
1 parent d112a8b commit 3e50748

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

patches/onnxruntime-freebsd.patch

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,12 @@
1010
if (p->affinity.has_value() && !p->affinity->empty()) {
1111
cpu_set_t cpuset;
1212
CPU_ZERO(&cpuset);
13+
14+
--- a/tools/python/util/platform_helpers.py
15+
+++ b/tools/python/util/platform_helpers.py
16+
@@ -12,4 +12,4 @@ def is_macOS(): # noqa: N802
17+
18+
19+
def is_linux():
20+
- return sys.platform.startswith("linux")
21+
+ return sys.platform.startswith("linux") or sys.platform.startswith("freebsd")

0 commit comments

Comments
 (0)