We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8722983 commit 3c8aaf8Copy full SHA for 3c8aaf8
1 file changed
python/src/moocore/_ffi_build.py
@@ -89,13 +89,17 @@ def _get_target_platform():
89
extra_compile_args.extend(MSVC_CFLAGS)
90
extra_link_args.extend(MSVC_LDFLAGS)
91
if is_x86_64:
92
- extra_compile_args.append("/arch:AVX")
+ extra_args = ["/arch:AVX"]
93
+ extra_compile_args.extend(extra_args)
94
+ extra_link_args.extend(extra_args)
95
else:
96
extra_compile_args.extend(GCC_CFLAGS)
97
extra_link_args.extend(GCC_CFLAGS)
98
# Compile for sufficiently old x86-64 architecture.
99
- extra_compile_args.append("-march=x86-64-v2")
100
+ extra_args = ["-march=x86-64-v2"]
101
102
103
104
cflags = os.environ.get("CFLAGS", "")
105
if cflags != "":
0 commit comments