You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
3bec375e32
Signed-off-by: Paul Guyot <pguyot@kallisys.net>
12 lines
512 B
Diff
12 lines
512 B
Diff
--- setup.py.orig 2024-01-01 00:00:00.000000000 +0000
|
|
+++ setup.py 2024-01-01 00:00:00.000000000 +0000
|
|
@@ -198,7 +198,7 @@
|
|
extra_compile_args["cxx"].extend(
|
|
["/MP", "/Zc:lambda", "/Zc:preprocessor", "/Zc:__cplusplus"]
|
|
)
|
|
- elif "OpenMP not found" not in torch.__config__.parallel_info():
|
|
+ elif sys.platform != "darwin" and "OpenMP not found" not in torch.__config__.parallel_info():
|
|
extra_compile_args["cxx"].append("-fopenmp")
|
|
|
|
include_dirs = [extensions_dir]
|