mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
add configure-time check for __int128 support in the compiler
This commit is contained in:
parent
c8feef51ab
commit
cfe2ca9bf2
1 changed files with 14 additions and 0 deletions
14
wscript
14
wscript
|
|
@ -1262,6 +1262,20 @@ int main () { return 0; }
|
||||||
# MORE STUFF PROBABLY NEEDED HERE
|
# MORE STUFF PROBABLY NEEDED HERE
|
||||||
conf.define ('WINDOWS', 1)
|
conf.define ('WINDOWS', 1)
|
||||||
|
|
||||||
|
have_int128_support = conf.check_cc(fragment = '''
|
||||||
|
int main () { __int128 x = 0; return 0; }
|
||||||
|
''',
|
||||||
|
features = 'c',
|
||||||
|
mandatory = False,
|
||||||
|
execute = False,
|
||||||
|
msg = 'Checking for int128 support',
|
||||||
|
okmsg = 'lots of bits found.',
|
||||||
|
errmsg = 'Not found, no int128 support.')
|
||||||
|
|
||||||
|
if have_int128_support:
|
||||||
|
conf.env.append_value('CXXFLAGS', "-DCOMPILER_INT128_SUPPORT")
|
||||||
|
conf.env.append_value('CFLAGS', "-DCOMPILER_INT128_SUPPORT")
|
||||||
|
|
||||||
# Tell everyone that this is a waf build
|
# Tell everyone that this is a waf build
|
||||||
|
|
||||||
conf.env.append_value('CFLAGS', '-DWAF_BUILD')
|
conf.env.append_value('CFLAGS', '-DWAF_BUILD')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue