1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Merge pull request #65236 from akien-mga/scons-compiledb-explicit-requirement

This commit is contained in:
Rémi Verschelde
2022-09-02 13:50:50 +02:00

View File

@@ -444,9 +444,12 @@ if selected_platform in platform_list:
scons_ver = env._get_major_minor_revision(scons_raw_version) scons_ver = env._get_major_minor_revision(scons_raw_version)
if scons_ver >= (4, 0, 0): if scons_ver < (4, 0, 0):
env.Tool("compilation_db") print("The `compiledb=yes` option requires SCons 4.0 or later, but your version is %s." % scons_raw_version)
env.Alias("compiledb", env.CompilationDatabase()) Exit(255)
env.Tool("compilation_db")
env.Alias("compiledb", env.CompilationDatabase())
# 'dev' and 'production' are aliases to set default options if they haven't been set # 'dev' and 'production' are aliases to set default options if they haven't been set
# manually by the user. # manually by the user.