mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-13 22:13:02 +00:00
scons: ensure that if /usr/include is added to CPPPATH it won't be used with -isystem option
This commit is contained in:
parent
94e4ca1a38
commit
414659200d
@ -1,10 +1,12 @@
|
||||
from os.path import normpath
|
||||
|
||||
def exists():
|
||||
return True
|
||||
|
||||
def make_incflags(paths, RDirs):
|
||||
result = []
|
||||
for path in paths:
|
||||
if not str(path).startswith("#"):
|
||||
if not str(path).startswith("#") and normpath(str(path)) != '/usr/include':
|
||||
for rdir in RDirs((path,)):
|
||||
result.append("-isystem")
|
||||
result.append(str(rdir))
|
||||
|
Loading…
x
Reference in New Issue
Block a user