SCons: Add CPPEXTPATH for external includes

(cherry picked from commit 30bfa6f215)
This commit is contained in:
Thaddeus Crews
2025-04-02 12:34:03 -05:00
committed by David Snopek
parent de7e5b9145
commit 888f46bbcc
2 changed files with 19 additions and 0 deletions

View File

@@ -125,6 +125,11 @@ def generate(env):
if env["silence_msvc"] and not env.GetOption("clean"):
silence_msvc(env)
if not env["use_llvm"]:
env.AppendUnique(CCFLAGS=["/experimental:external", "/external:anglebrackets"])
env.AppendUnique(CCFLAGS=["/external:W0"])
env["EXTINCPREFIX"] = "/external:I"
elif (sys.platform == "win32" or sys.platform == "msys") and not env["mingw_prefix"]:
env["use_mingw"] = True
mingw.generate(env)