mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Make sure not to generate the compile_commands.json when not asked
This commit is contained in:
parent
c73ac74c4a
commit
400800a86c
11
SConstruct
11
SConstruct
@ -1011,11 +1011,12 @@ if env["vsproj"]:
|
|||||||
env.vs_incs = []
|
env.vs_incs = []
|
||||||
env.vs_srcs = []
|
env.vs_srcs = []
|
||||||
|
|
||||||
if env["compiledb"] and env.scons_version < (4, 0, 0):
|
if env["compiledb"]:
|
||||||
# Generating the compilation DB (`compile_commands.json`) requires SCons 4.0.0 or later.
|
if env.scons_version < (4, 0, 0):
|
||||||
print_error("The `compiledb=yes` option requires SCons 4.0 or later, but your version is %s." % scons_raw_version)
|
# Generating the compilation DB (`compile_commands.json`) requires SCons 4.0.0 or later.
|
||||||
Exit(255)
|
print_error("The `compiledb=yes` option requires SCons 4.0 or later, but your version is %s." % scons_raw_version)
|
||||||
if env.scons_version >= (4, 0, 0):
|
Exit(255)
|
||||||
|
|
||||||
env.Tool("compilation_db")
|
env.Tool("compilation_db")
|
||||||
env.Alias("compiledb", env.CompilationDatabase())
|
env.Alias("compiledb", env.CompilationDatabase())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user