Skip to content
Snippets Groups Projects
Commit d16f8244 authored by Axel Naumann's avatar Axel Naumann
Browse files

[build] makepchinput should keep order of CXXFLAGS.

parent 9a095b62
No related branches found
No related tags found
No related merge requests found
......@@ -46,11 +46,12 @@ def getParams():
clingetpchList = argv[3:posDelim]
cxxflags = argv[posDelim + 1:]
#print (', '.join(cxxflags))
cxxflagsNoW = {flag for flag in cxxflags if (flag[0:2] != '-W' and flag[0:3] != '-wd' and \
cxxflagsNoW = [flag for flag in cxxflags if (flag[0:2] != '-W' and flag[0:3] != '-wd' and \
flag[0:2] != '-x' and flag[0:3] != '-ax' and \
flag[0:2] != '-O' and flag[0:5] != '-arch') \
or flag[0:4] == '-Wno'} - \
{'-Wno-noexcept-type'}
or flag[0:4] == '-Wno']
if '-Wno-noexcept-type' in cxxflagsNoW:
cxxflagsNoW.remove('-Wno-noexcept-type')
#print (', '.join(cxxflagsNoW))
return rootSrcDir, modules, clingetpchList, cxxflagsNoW
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment