Skip to content

Commit 889d65f

Browse files
committed
python/src/moocore/_ffi_build.py: Avoid duplicating cflags.
1 parent 4640969 commit 889d65f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

python/src/moocore/_ffi_build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def _get_target_platform():
9595
]
9696
MSVC_LDFLAGS = ["/LTCG"] # Link-time optimization
9797
GCC_CFLAGS = ["-O3", "-flto", "-fvisibility=hidden"]
98-
GCC_LDFLAGS = [*GCC_CFLAGS]
98+
GCC_LDFLAGS = []
9999
if is_x86_64:
100100
# Compile for sufficiently old x86-64 architecture.
101101
MSVC_arch = ["/arch:AVX"]
@@ -109,7 +109,7 @@ def _get_target_platform():
109109
ldflags = MSVC_LDFLAGS + MSVC_arch
110110
else:
111111
cflags = GCC_CFLAGS + GCC_arch
112-
ldflags = GCC_LDFLAGS + GCC_arch
112+
ldflags = GCC_LDFLAGS
113113
if not is_macos:
114114
ldflags += ["-Wl,-z,now"]
115115

0 commit comments

Comments
 (0)