mirror of
https://github.com/Z3Prover/z3
synced 2025-04-06 09:34:08 +00:00
Improving visual studio support
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
a564be5caf
commit
12d7c3a187
15
scripts/config-vs-debug.mk
Normal file
15
scripts/config-vs-debug.mk
Normal file
|
@ -0,0 +1,15 @@
|
|||
CXX=cl
|
||||
CXXFLAGS=/c /ZI /nologo /W3 /WX- /Od /Oy- /D "WIN32" /D "_DEBUG" /D "Z3DEBUG" /D "_CONSOLE" /D "_TRACE" /D "_WINDOWS" /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /openmp /Gd /analyze-
|
||||
CXX_OUT_FLAG=/Fo
|
||||
OBJ_EXT=.obj
|
||||
LIB_EXT=.lib
|
||||
AR=lib
|
||||
AR_FLAGS=/nologo
|
||||
AR_OUTFLAG=/OUT:
|
||||
EXE_EXT=.exe
|
||||
LINK=cl
|
||||
LINK_FLAGS=/nologo "$(VSINSTALLDIR)VC\Lib\libcpmt.lib" "$(WindowsSdkDir)Lib\uuid.lib" "$(VSINSTALLDIR)VC\Lib\libcmt.lib" "$(VSINSTALLDIR)VC\Lib\oldnames.lib" "$(VSINSTALLDIR)VC\Lib\VCOMP.lib" "$(WindowsSdkDir)Lib\kernel32.lib"
|
||||
LINK_EXTRA_FLAGS=/link /DEBUG /MACHINE:X86 /SUBSYSTEM:CONSOLE /INCREMENTAL:NO /STACK:"8388608" /OPT:REF /OPT:ICF /TLBID:1 /DYNAMICBASE /NXCOMPAT
|
||||
LINK_OUT_FLAG=/Fe
|
||||
|
||||
|
15
scripts/config-vs-release.mk
Normal file
15
scripts/config-vs-release.mk
Normal file
|
@ -0,0 +1,15 @@
|
|||
CXX=cl
|
||||
CXXFLAGS=/nologo /c /W3 /WX- /O2 /Oy- /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_WINDOWS" /D "ASYNC_COMMANDS" /Gm- /EHsc /GS /fp:precise /Zc:wchar_t /Zc:forScope /openmp /Gd /analyze-
|
||||
CXX_OUT_FLAG=/Fo
|
||||
OBJ_EXT=.obj
|
||||
LIB_EXT=.lib
|
||||
AR=lib
|
||||
AR_FLAGS=/nologo
|
||||
AR_OUTFLAG=/OUT:
|
||||
EXE_EXT=.exe
|
||||
LINK=cl
|
||||
LINK_FLAGS=/nologo "$(VSINSTALLDIR)VC\Lib\libcpmt.lib" "$(WindowsSdkDir)Lib\uuid.lib" "$(VSINSTALLDIR)VC\Lib\libcmt.lib" "$(VSINSTALLDIR)VC\Lib\oldnames.lib" "$(VSINSTALLDIR)VC\Lib\VCOMP.lib" "$(WindowsSdkDir)Lib\kernel32.lib"
|
||||
LINK_EXTRA_FLAGS=/link /MACHINE:X86 /SUBSYSTEM:CONSOLE /INCREMENTAL:NO /STACK:"8388608" /OPT:REF /OPT:ICF /TLBID:1 /DYNAMICBASE /NXCOMPAT
|
||||
LINK_OUT_FLAG=/Fe
|
||||
|
||||
|
|
@ -298,7 +298,7 @@ class ExeComponent(Component):
|
|||
for dep in deps:
|
||||
c_dep = _Name2Component[dep]
|
||||
out.write(' %s/%s$(LIB_EXT)' % (c_dep.build_dir, c_dep.name))
|
||||
out.write('\n')
|
||||
out.write(' $(LINK_EXTRA_FLAGS)\n')
|
||||
out.write('%s: %s\n\n' % (self.name, exefile))
|
||||
|
||||
# All executables are included in the all: rule
|
||||
|
@ -326,8 +326,14 @@ def add_exe(name, deps=[], path=None, exe_name=None):
|
|||
# Copy configuration correct file to BUILD_DIR
|
||||
def cp_config_mk():
|
||||
if IS_WINDOW:
|
||||
# TODO
|
||||
return
|
||||
if VS_X64:
|
||||
# TODO
|
||||
return
|
||||
else:
|
||||
if DEBUG_MODE:
|
||||
shutil.copyfile('scripts/config-vs-debug.mk', '%s/config.mk' % BUILD_DIR)
|
||||
else:
|
||||
shutil.copyfile('scripts/config-vs-release.mk', '%s/config.mk' % BUILD_DIR)
|
||||
else:
|
||||
if DEBUG_MODE:
|
||||
shutil.copyfile('scripts/config-debug.mk', '%s/config.mk' % BUILD_DIR)
|
||||
|
|
Loading…
Reference in a new issue