mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-29 16:24:16 +00:00
wscript: added support for "Edit and Continue" MSVC feature
This commit is contained in:
parent
ddc4d76668
commit
1a5b2576f7
@ -41,19 +41,22 @@ LINKFLAGS = {
|
|||||||
'sanitize': {
|
'sanitize': {
|
||||||
'clang': ['-fsanitize=undefined', '-fsanitize=address'],
|
'clang': ['-fsanitize=undefined', '-fsanitize=address'],
|
||||||
'gcc': ['-fsanitize=undefined', '-fsanitize=address'],
|
'gcc': ['-fsanitize=undefined', '-fsanitize=address'],
|
||||||
|
},
|
||||||
|
'debug': {
|
||||||
|
'msvc': ['/INCREMENTAL', '/SAFESEH:NO']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CFLAGS = {
|
CFLAGS = {
|
||||||
'common': {
|
'common': {
|
||||||
# disable thread-safe local static initialization for C++11 code, as it cause crashes on Windows XP
|
# disable thread-safe local static initialization for C++11 code, as it cause crashes on Windows XP
|
||||||
'msvc': ['/D_USING_V110_SDK71_', '/Zi', '/FS', '/Zc:threadSafeInit-', '/MT'],
|
'msvc': ['/D_USING_V110_SDK71_', '/FS', '/Zc:threadSafeInit-', '/MT'],
|
||||||
'clang': ['-g', '-gdwarf-2', '-fvisibility=hidden'],
|
'clang': ['-g', '-gdwarf-2', '-fvisibility=hidden'],
|
||||||
'gcc': ['-g', '-fvisibility=hidden'],
|
'gcc': ['-g', '-fvisibility=hidden'],
|
||||||
'owcc': ['-fno-short-enum', '-ffloat-store', '-g3']
|
'owcc': ['-fno-short-enum', '-ffloat-store', '-g3']
|
||||||
},
|
},
|
||||||
'fast': {
|
'fast': {
|
||||||
'msvc': ['/O2', '/Oy'],
|
'msvc': ['/O2', '/Oy', '/Zi'],
|
||||||
'gcc': {
|
'gcc': {
|
||||||
'3': ['-O3', '-fomit-frame-pointer'],
|
'3': ['-O3', '-fomit-frame-pointer'],
|
||||||
'default': ['-Ofast', '-funsafe-math-optimizations', '-funsafe-loop-optimizations', '-fomit-frame-pointer']
|
'default': ['-Ofast', '-funsafe-math-optimizations', '-funsafe-loop-optimizations', '-fomit-frame-pointer']
|
||||||
@ -62,29 +65,29 @@ CFLAGS = {
|
|||||||
'default': ['-O3']
|
'default': ['-O3']
|
||||||
},
|
},
|
||||||
'fastnative': {
|
'fastnative': {
|
||||||
'msvc': ['/O2', '/Oy'],
|
'msvc': ['/O2', '/Oy', '/Zi'],
|
||||||
'gcc': ['-Ofast', '-march=native', '-funsafe-math-optimizations', '-funsafe-loop-optimizations', '-fomit-frame-pointer'],
|
'gcc': ['-Ofast', '-march=native', '-funsafe-math-optimizations', '-funsafe-loop-optimizations', '-fomit-frame-pointer'],
|
||||||
'clang': ['-Ofast', '-march=native'],
|
'clang': ['-Ofast', '-march=native'],
|
||||||
'default': ['-O3']
|
'default': ['-O3']
|
||||||
},
|
},
|
||||||
'release': {
|
'release': {
|
||||||
'msvc': ['/O2'],
|
'msvc': ['/O2', '/Zi'],
|
||||||
'owcc': ['-O3', '-foptimize-sibling-calls', '-fomit-leaf-frame-pointer', '-fomit-frame-pointer', '-fschedule-insns', '-funsafe-math-optimizations', '-funroll-loops', '-frerun-optimizer', '-finline-functions', '-finline-limit=512', '-fguess-branch-probability', '-fno-strict-aliasing', '-floop-optimize'],
|
'owcc': ['-O3', '-foptimize-sibling-calls', '-fomit-leaf-frame-pointer', '-fomit-frame-pointer', '-fschedule-insns', '-funsafe-math-optimizations', '-funroll-loops', '-frerun-optimizer', '-finline-functions', '-finline-limit=512', '-fguess-branch-probability', '-fno-strict-aliasing', '-floop-optimize'],
|
||||||
'default': ['-O3']
|
'default': ['-O3']
|
||||||
},
|
},
|
||||||
'debug': {
|
'debug': {
|
||||||
'msvc': ['/Od'],
|
'msvc': ['/Od', '/ZI'],
|
||||||
'owcc': ['-O0', '-fno-omit-frame-pointer', '-funwind-tables', '-fno-omit-leaf-frame-pointer'],
|
'owcc': ['-O0', '-fno-omit-frame-pointer', '-funwind-tables', '-fno-omit-leaf-frame-pointer'],
|
||||||
'default': ['-O0']
|
'default': ['-O0']
|
||||||
},
|
},
|
||||||
'sanitize': {
|
'sanitize': {
|
||||||
'msvc': ['/Od', '/RTC1'],
|
'msvc': ['/Od', '/RTC1', '/Zi'],
|
||||||
'gcc': ['-Og', '-fsanitize=undefined', '-fsanitize=address'],
|
'gcc': ['-Og', '-fsanitize=undefined', '-fsanitize=address'],
|
||||||
'clang': ['-O0', '-fsanitize=undefined', '-fsanitize=address'],
|
'clang': ['-O0', '-fsanitize=undefined', '-fsanitize=address'],
|
||||||
'default': ['-O0']
|
'default': ['-O0']
|
||||||
},
|
},
|
||||||
'nooptimize': {
|
'nooptimize': {
|
||||||
'msvc': ['/Od'],
|
'msvc': ['/Od', '/Zi'],
|
||||||
'default': ['-O0']
|
'default': ['-O0']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user