summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-02 13:50:50 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-09-02 13:50:50 +0200
commitef34c411db6f6f09cf5c98b4e7a0fc565a8f3b4c (patch)
treeb378cc15d00bd0863f222035e281c3722e9c9984
parentc82bbc38a51c3b3a66519babd26135abf2ce7d47 (diff)
parent6c5e085d1317df8576b78f0f0ca90a2fff364664 (diff)
Merge pull request #65236 from akien-mga/scons-compiledb-explicit-requirement
-rw-r--r--SConstruct9
1 files changed, 6 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct
index 4972b21421..46942ca3b4 100644
--- a/SConstruct
+++ b/SConstruct
@@ -444,9 +444,12 @@ if selected_platform in platform_list:
scons_ver = env._get_major_minor_revision(scons_raw_version)
- if scons_ver >= (4, 0, 0):
- env.Tool("compilation_db")
- env.Alias("compiledb", env.CompilationDatabase())
+ if scons_ver < (4, 0, 0):
+ print("The `compiledb=yes` option requires SCons 4.0 or later, but your version is %s." % scons_raw_version)
+ 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
# manually by the user.