Commit 06d3f361 authored by André Anjos's avatar André Anjos

Merge branch 'better-macos-support' into 'master'

Improve support for Extension building by acknowledging CXXFLAGS; Sets…

See merge request !95
parents 54f6c279 ad934fc4
Pipeline #25651 passed with stages
in 15 minutes and 14 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