We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8920559 commit 91a9a9eCopy full SHA for 91a9a9e
1 file changed
setup.py
@@ -42,15 +42,24 @@ def detect_gcc_on_windows():
42
43
# Use same GCC flags as Linux for consistency with SciPy
44
# Note: Disabled LTO due to old GCC version issues
45
- extra_compile_args = [
46
- "-O3",
47
- "-march=native",
48
- "-ffast-math",
49
- "-funroll-loops",
50
- "-msse2",
51
- "-msse3",
52
- "-msse4",
53
- ]
+ if os.getenv("GITHUB_ACTIONS") == "true":
+ # Safe flags for GitHub Actions (no -march=native for universal builds)
+ extra_compile_args = [
+ "-O3",
+ "-ffast-math",
+ "-funroll-loops",
+ ]
+ else:
+ # Local development with native optimization
54
55
56
+ "-march=native",
57
58
59
+ "-msse2",
60
+ "-msse3",
61
+ "-msse4",
62
63
extra_link_args = []
64
compiler_type = "GCC"
65
else:
0 commit comments