mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
Add try catch around env.CompilationDatabase(), so the script works on the raspberry pi.
This commit is contained in:
parent
c0c76f1481
commit
e149574149
10
SConstruct
10
SConstruct
@ -159,7 +159,10 @@ for d in database_list:
|
||||
|
||||
if scons_ver >= (4, 0, 0):
|
||||
env_db.Tool("compilation_db")
|
||||
env_db.Alias("compiledb", env.CompilationDatabase())
|
||||
try:
|
||||
env_db.Alias("compiledb", env.CompilationDatabase())
|
||||
except AttributeError:
|
||||
print("scons: Compilation db not supported.");
|
||||
|
||||
detect.configure(env_db)
|
||||
detect.configure(env)
|
||||
@ -186,7 +189,10 @@ for m in module_list:
|
||||
|
||||
if scons_ver >= (4, 0, 0):
|
||||
env_mod.Tool("compilation_db")
|
||||
env_mod.Alias("compiledb", env.CompilationDatabase())
|
||||
try:
|
||||
env_mod.Alias("compiledb", env.CompilationDatabase())
|
||||
except AttributeError:
|
||||
print("scons: Compilation db not supported.");
|
||||
|
||||
detect.configure(env_mod)
|
||||
detect.configure(env)
|
||||
|
Loading…
Reference in New Issue
Block a user