Skip to content

Commit

Permalink
Fix XCode 10+ build issues (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximsmol authored and Headline committed Jan 22, 2019
1 parent 974de70 commit 02e061d
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions AMBuildScript
Expand Up @@ -202,7 +202,7 @@ class MMSConfig(object):
cxx.cflags += ['-mfpmath=sse']
if cxx.family == 'clang':
cxx.cxxflags += ['-Wno-implicit-exception-spec-mismatch']
if cxx.version >= 'clang-3.9':
if cxx.version >= 'clang-3.9' or cxx.version >= 'apple-clang-10.0':
cxx.cxxflags += ['-Wno-expansion-to-defined']
if cxx.version >= 'clang-3.6' or cxx.version >= 'apple-clang-7.0':
cxx.cxxflags += ['-Wno-inconsistent-missing-override']
Expand Down Expand Up @@ -275,9 +275,19 @@ class MMSConfig(object):
cxx.linkflags += ['-lgcc_eh']
elif builder.target.platform == 'mac':
cxx.defines += ['OSX', '_OSX', 'POSIX']
cxx.cflags += ['-mmacosx-version-min=10.5']

if cxx.version >= 'apple-clang-10.0':
cxx.cflags += ['-mmacosx-version-min=10.9', '-stdlib=libc++']
cxx.linkflags += [
'-mmacosx-version-min=10.9',
]
else:
cxx.cflags += ['-mmacosx-version-min=10.5']
cxx.linkflags += [
'-mmacosx-version-min=10.5',
]

cxx.linkflags += [
'-mmacosx-version-min=10.5',
'-lc++',
]
elif builder.target.platform == 'windows':
Expand Down

0 comments on commit 02e061d

Please sign in to comment.