You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
SCons: Set appropriate prefix when using clang-cl
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user