mirror of
https://github.com/Z3Prover/z3
synced 2025-11-02 04:27:52 +00:00
Reviewed and updated configuration for Python build and added comment for CFG.
This commit is contained in:
parent
2dd4221451
commit
07f6f84645
1 changed files with 4 additions and 1 deletions
|
|
@ -645,7 +645,8 @@ if os.name == 'nt':
|
||||||
IS_WINDOWS=True
|
IS_WINDOWS=True
|
||||||
# Visual Studio already displays the files being compiled
|
# Visual Studio already displays the files being compiled
|
||||||
SHOW_CPPS=False
|
SHOW_CPPS=False
|
||||||
# Enable Control Flow Guard by default on Windows
|
# Enable Control Flow Guard by default on Windows with MSVC
|
||||||
|
# Note: Python build system on Windows assumes MSVC (cl.exe) compiler
|
||||||
GUARD_CF = True
|
GUARD_CF = True
|
||||||
elif os.name == 'posix':
|
elif os.name == 'posix':
|
||||||
if os.uname()[0] == 'Darwin':
|
if os.uname()[0] == 'Darwin':
|
||||||
|
|
@ -2538,6 +2539,8 @@ def mk_config():
|
||||||
config = open(os.path.join(BUILD_DIR, 'config.mk'), 'w')
|
config = open(os.path.join(BUILD_DIR, 'config.mk'), 'w')
|
||||||
global CXX, CC, GMP, GUARD_CF, STATIC_BIN, GIT_HASH, CPPFLAGS, CXXFLAGS, LDFLAGS, EXAMP_DEBUG_FLAG, FPMATH_FLAGS, LOG_SYNC, SINGLE_THREADED, IS_ARCH_ARM64
|
global CXX, CC, GMP, GUARD_CF, STATIC_BIN, GIT_HASH, CPPFLAGS, CXXFLAGS, LDFLAGS, EXAMP_DEBUG_FLAG, FPMATH_FLAGS, LOG_SYNC, SINGLE_THREADED, IS_ARCH_ARM64
|
||||||
if IS_WINDOWS:
|
if IS_WINDOWS:
|
||||||
|
# On Windows, Python build system assumes MSVC (cl.exe) compiler
|
||||||
|
# GUARD_CF is only supported with MSVC, which is the default on Windows
|
||||||
CXXFLAGS = '/nologo /Zi /D WIN32 /D _WINDOWS /EHsc /GS /Gd /std:c++20 -D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR'
|
CXXFLAGS = '/nologo /Zi /D WIN32 /D _WINDOWS /EHsc /GS /Gd /std:c++20 -D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR'
|
||||||
config.write(
|
config.write(
|
||||||
'CC=cl\n'
|
'CC=cl\n'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue