Commit ad934fc4 authored by André Anjos's avatar André Anjos

[init] Improve support for Extension building by acknowledging CXXFLAGS; Sets...

[init] Improve support for Extension building by acknowledging CXXFLAGS; Sets -isysroot for macOS builds
parent 54f6c279
Pipeline #25650 passed with stage
in 11 minutes and 24 seconds
......@@ -397,14 +397,20 @@ class Extension(DistutilsExtension):
# Mixing
parameters = {
'define_macros': generate_self_macros(name, version) + bob_macros,
'extra_compile_args': ['-std=c++0x'], #synonym for c++11?
'extra_compile_args': os.environ.get('CXXFLAGS', '').split(),
'extra_link_args': [],
'library_dirs': [],
'libraries': bob_libraries,
}
# Compilation options
# Compilation options for macOS builds
if platform.system() == 'Darwin':
sdkroot = os.environ.get('SDKROOT')
if sdkroot is not None and sdkroot:
parameters['extra_compile_args'] = ['-isysroot', sdkroot] + \
parameters['extra_compile_args']
parameters['extra_compile_args'] += ['-Wno-#warnings']
user_includes = kwargs.get('include_dirs', [])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment