Browse Source

wscript: add special options for fast build type for gcc3

pull/2/head
Alibek Omarov 5 years ago
parent
commit
d18cb1f74c
  1. 10
      wscript

10
wscript

@ -126,6 +126,7 @@ def configure(conf):
conf.env.MAGX = conf.options.MAGX conf.env.MAGX = conf.options.MAGX
if conf.options.MAGX: if conf.options.MAGX:
conf.options.USE_SELECT = True
conf.options.SDL12 = True conf.options.SDL12 = True
conf.options.NO_VGUI = True conf.options.NO_VGUI = True
conf.options.GL = False conf.options.GL = False
@ -182,7 +183,10 @@ def configure(conf):
}, },
'fast': { 'fast': {
'msvc': ['/O2', '/Oy'], 'msvc': ['/O2', '/Oy'],
'gcc': ['-Ofast', '-funsafe-math-optimizations', '-funsafe-loop-optimizations', '-fomit-frame-pointer'], 'gcc': {
'3': ['-O3', '-Os', '-funsafe-math-optimizations', '-fomit-frame-pointer'],
'default': ['-Ofast', '-funsafe-math-optimizations', '-funsafe-loop-optimizations', '-fomit-frame-pointer']
},
'clang': ['-Ofast'], 'clang': ['-Ofast'],
'default': ['-O3'] 'default': ['-O3']
}, },
@ -237,8 +241,8 @@ def configure(conf):
'-Werror=declaration-after-statement' '-Werror=declaration-after-statement'
] ]
linkflags = conf.get_flags_by_type(linker_flags, conf.options.BUILD_TYPE, conf.env.COMPILER_CC) linkflags = conf.get_flags_by_type(linker_flags, conf.options.BUILD_TYPE, conf.env.COMPILER_CC, conf.env.CC_VERSION[0])
cflags = conf.get_flags_by_type(compiler_c_cxx_flags, conf.options.BUILD_TYPE, conf.env.COMPILER_CC) cflags = conf.get_flags_by_type(compiler_c_cxx_flags, conf.options.BUILD_TYPE, conf.env.COMPILER_CC, conf.env.CC_VERSION[0])
# Here we don't differentiate C or C++ flags # Here we don't differentiate C or C++ flags
if conf.options.LTO: if conf.options.LTO:

Loading…
Cancel
Save