clang quirks - Issue 1714

This commit is contained in:
Thomas Nagy 2016-03-04 19:23:14 +01:00
parent a8a918763f
commit 64af7a67bb
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
1 changed files with 6 additions and 1 deletions

View File

@ -168,7 +168,12 @@ def parse_flags(self, line, uselib_store, env=None, force_static=False, posix=No
elif x.startswith('/LIBPATH:'):
prefix = (force_static or static) and 'STLIBPATH_' or 'LIBPATH_'
appu(prefix + uselib, [x.replace('/LIBPATH:', '')])
elif x == '-pthread' or x.startswith('+') or x.startswith('-std'):
elif x.startswith('-std='):
if '++' in x:
app('CXXFLAGS_' + uselib, [x])
else:
app('CFLAGS_' + uselib, [x])
elif x == '-pthread' or x.startswith('+'):
app('CFLAGS_' + uselib, [x])
app('CXXFLAGS_' + uselib, [x])
app('LINKFLAGS_' + uselib, [x])