-mmacosx-version-min=10.9

This commit is contained in:
Tamás Bálint Misius
2021-04-09 11:00:51 +02:00
parent b98c9c8a2e
commit 47d43f0a5b
13 changed files with 42 additions and 38 deletions

View File

@@ -20,7 +20,7 @@ copt_msvc = cpp_compiler.get_id() in [ 'msvc' ]
if cpp_compiler.get_id() in [ 'msvc' ]
copt_compiler = 'msvc'
elif cpp_compiler.get_id() in [ 'gcc' ]
elif cpp_compiler.get_id() in [ 'gcc', 'clang' ]
copt_compiler = 'gcc'
else
warning('unsupported compiler: ' + cpp_compiler.get_id() + '; you are on your own')
@@ -53,7 +53,7 @@ endif
uopt_static = get_option('static')
use_tpt_libs = 'no'
tpt_libs_vtag = 'v20210320221332'
tpt_libs_vtag = 'v20210409104352'
if uopt_static == 'system'
if copt_platform == 'win'
error('no way to find static system libraries on windows')
@@ -208,6 +208,10 @@ else
'-fomit-frame-pointer',
]
endif
if copt_platform == 'mac'
args_ccomp += [ '-mmacosx-version-min=10.9' ]
project_link_args += [ '-mmacosx-version-min=10.9' ]
endif
project_c_args += args_ccomp
project_cpp_args += args_ccomp + [ '-Wno-invalid-offsetof' ]
endif