aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Spartan322 <Megacake1234@gmail.com>2023-11-11 21:29:15 +0100
committer Spartan322 <Megacake1234@gmail.com>2023-11-11 22:17:28 +0100
commit8eb0c6c14bd12286d06962d0a97acfbcc7862afd (patch)
tree2d9700a07a5210aec0c33876b52ed0d554d9ea79
parenta428ca4d6fdc950800aa6986694aed6eaaa54e14 (diff)
Fix compiledb warning
-rw-r--r--SConstruct11
m---------deps/lexy-vdf0
m---------deps/openvic-dataloader0
m---------scripts0
4 files changed, 9 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index 4d96e4a..ca4729c 100644
--- a/SConstruct
+++ b/SConstruct
@@ -52,9 +52,11 @@ library = None
env["OBJSUFFIX"] = suffix + env["OBJSUFFIX"]
library_name = "libopenvic-simulation{}{}".format(suffix, env["LIBSUFFIX"])
+default_args = []
+
if env["build_ovsim_library"]:
library = env.StaticLibrary(target=env.File(os.path.join(BINDIR, library_name)), source=sources)
- Default(library)
+ default_args += [library]
env.Append(LIBPATH=[env.Dir(BINDIR)])
env.Prepend(LIBS=[library_name])
@@ -80,8 +82,13 @@ if env["build_ovsim_headless"]:
source=headless_env.headless_sources,
PROGSUFFIX=".headless" + env["PROGSUFFIX"]
)
- Default(headless_program)
+ default_args += [headless_program]
+
+# Add compiledb if the option is set
+if env.get("compiledb", False):
+ default_args += ["compiledb"]
+Default(*default_args)
if "env" in locals():
# FIXME: This method mixes both cosmetic progress stuff and cache handling...
diff --git a/deps/lexy-vdf b/deps/lexy-vdf
-Subproject 83c7aff3a00407ec21e40f83464af848ad21e9d
+Subproject 55134f31310da603b428f8e892458bd0ba84160
diff --git a/deps/openvic-dataloader b/deps/openvic-dataloader
-Subproject c3689423a74594344e46dc7d91ea9d85fccc4e8
+Subproject ce1f1e5fe32ed0856bd2b6df5136dad3f6bc991
diff --git a/scripts b/scripts
-Subproject a0ca6e84c28eba5df99381fb32d1fd149d86f5b
+Subproject 3a4190526bde8e3fcd49c3ebcf77b5a87dc8ab6