mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-03 06:45:53 +01:00
SCons: Enforce version 4.0+ when compiledb=yes
is used
Fixes #65233. (cherry picked from commit 6c5e085d1317df8576b78f0f0ca90a2fff364664)
This commit is contained in:
parent
06ddad7cd6
commit
67ea3b41f5
@ -389,9 +389,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())
|
||||||
|
|
||||||
env.extra_suffix = ""
|
env.extra_suffix = ""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user