Skip to content

Commit

Permalink
Fix compiledb duplicate warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Spartan322 committed Nov 11, 2023
1 parent f94b4b1 commit ca0535a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ env = SConscript("scripts/SConstruct")

env.PrependENVPath("PATH", os.getenv("PATH"))

OLD_ARGS = ARGUMENTS.copy()
ARGUMENTS["compiledb"] = False
opts = env.SetupOptions()

env.FinalizeOptions()
ARGUMENTS = OLD_ARGS

# Needs Clone, else godot-cpp builds using our modified environment variables. eg: godot-cpp builds on C++20
OLD_ARGS = ARGUMENTS.copy()
Expand Down Expand Up @@ -82,12 +85,8 @@ else:

default_args = [library]

# Add compiledb if the option is set
if env.get("compiledb", False):
default_args += ["compiledb"]

if "env" in locals():
# FIXME: This method mixes both cosmetic progress stuff and cache handling...
env.show_progress(env)

Default(default_args)
Default(*default_args)
2 changes: 1 addition & 1 deletion extension/deps/openvic-simulation
2 changes: 1 addition & 1 deletion scripts
Submodule scripts updated 1 files
+1 −10 SConstruct

0 comments on commit ca0535a

Please sign in to comment.