remove more explicit compiler flags by placing them in the compiler flags dictionary
This commit is contained in:
parent
3adfa9ef57
commit
6485300479
|
@ -88,10 +88,10 @@ def build(bld):
|
||||||
obj.use = 'libardour libpbd'
|
obj.use = 'libardour libpbd'
|
||||||
if bld.env['build_target'] == 'mingw':
|
if bld.env['build_target'] == 'mingw':
|
||||||
obj.uselib = ['PORTAUDIO']
|
obj.uselib = ['PORTAUDIO']
|
||||||
obj.cxxflags = [ '-fPIC' ]
|
obj.cxxflags = [ bld.env['compiler_flags_dict']['pic'] ]
|
||||||
obj.cflags = [ '-fPIC', '-fms-extensions' ]
|
obj.cflags = [ bld.env['compiler_flags_dict']['pic'], bld.env['compiler_flags_dict']['c-anonymous-union'] ]
|
||||||
else:
|
else:
|
||||||
obj.cflags = ['-fms-extensions' ]
|
obj.cflags = [ bld.env['compiler_flags_dict']['c-anonymous-union'] ]
|
||||||
obj.install_path = os.path.join(bld.env['LIBDIR'], 'backends')
|
obj.install_path = os.path.join(bld.env['LIBDIR'], 'backends')
|
||||||
|
|
||||||
if bld.env['build_target']== 'mingw':
|
if bld.env['build_target']== 'mingw':
|
||||||
|
|
3
wscript
3
wscript
|
@ -82,6 +82,8 @@ compiler_flags_dictionaries= {
|
||||||
'avx': '-mavx',
|
'avx': '-mavx',
|
||||||
# Flags to generate position independent code, when needed to build a shared object
|
# Flags to generate position independent code, when needed to build a shared object
|
||||||
'pic': '-fPIC',
|
'pic': '-fPIC',
|
||||||
|
# Flags required to compile C code with anonymous unions (only part of C11)
|
||||||
|
'c-anonymous-union': '-fms-extensions',
|
||||||
},
|
},
|
||||||
'msvc' : {
|
'msvc' : {
|
||||||
'debuggable' : ['/DDEBUG', '/Od', '/Zi', '/MDd', '/Gd', '/EHsc'],
|
'debuggable' : ['/DDEBUG', '/Od', '/Zi', '/MDd', '/Gd', '/EHsc'],
|
||||||
|
@ -112,6 +114,7 @@ compiler_flags_dictionaries= {
|
||||||
'attasm': '',
|
'attasm': '',
|
||||||
'avx': '',
|
'avx': '',
|
||||||
'pic': '',
|
'pic': '',
|
||||||
|
'c-anonymous-union': '',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue