Skip to content

Commit a85f6ab

Browse files
committed
* python/src/moocore/_ffi_build.py (MSVC_CFLAGS): Disable a few warnings.
1 parent 6870402 commit a85f6ab

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

python/src/moocore/_ffi_build.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,15 @@ def _get_target_platform():
8383
is_x86_64 = target_platform in ("i686", "x86", "x86_64", "AMD64")
8484

8585
# Compiler flags.
86-
MSVC_CFLAGS = ["/GL", "/O2", "/GS-", "/wd4996", "/DMOOCORE_SHARED_LIB"]
87-
MSVC_LDFLAGS = ["/LTCG"]
86+
MSVC_CFLAGS = [
87+
"/O2", # Maximize speed
88+
"/GL", # Enables whole program optimization.
89+
"/GS-", # Disable buffer security check (for speed)
90+
"/wd4996",
91+
"/wd4114",
92+
"/DMOOCORE_SHARED_LIB",
93+
]
94+
MSVC_LDFLAGS = ["/LTCG"] # Link-time optimization
8895
GCC_CFLAGS = ["-O3", "-flto", "-fvisibility=hidden"]
8996
GCC_LDFLAGS = [*GCC_CFLAGS]
9097
if is_x86_64:

0 commit comments

Comments
 (0)