mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
SCons: Set appropriate prefix when using clang-cl
This commit is contained in:
parent
ff9fb0abea
commit
9968828913
1 changed files with 5 additions and 0 deletions
|
@ -390,6 +390,11 @@ def configure_msvc(env: "SConsEnvironment", vcvars_msvc_config):
|
|||
env.AppendUnique(CPPDEFINES=["R128_STDC_ONLY"])
|
||||
env.extra_suffix = ".llvm" + env.extra_suffix
|
||||
|
||||
# Ensure intellisense tools like `compile_commands.json` play nice with MSVC syntax.
|
||||
env["CPPDEFPREFIX"] = "-D"
|
||||
env["INCPREFIX"] = "-I"
|
||||
env.AppendUnique(CPPDEFINES=[("alloca", "_alloca")])
|
||||
|
||||
if env["silence_msvc"] and not env.GetOption("clean"):
|
||||
from tempfile import mkstemp
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue