Skip to content

Commit

Permalink
Merge pull request #10 from OpenVicProject/fix/compiledb
Browse files Browse the repository at this point in the history
  • Loading branch information
Spartan322 authored Nov 11, 2023
2 parents 83c7aff + edb346c commit 55134f3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@ library = None
env["OBJSUFFIX"] = suffix + env["OBJSUFFIX"]
library_name = "liblexy-vdf{}{}".format(suffix, env["LIBSUFFIX"])

default_args = []

if env["build_lvdf_library"]:
library = env.StaticLibrary(target=os.path.join(BINDIR, library_name), source=sources)
Default(library)
default_args += [library]

env.Append(LIBPATH=[env.Dir(BINDIR)])
env.Prepend(LIBS=[library_name])
Expand All @@ -80,8 +82,13 @@ if env["build_lvdf_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...
Expand Down
2 changes: 1 addition & 1 deletion scripts
Submodule scripts updated 1 files
+1 −10 SConstruct

0 comments on commit 55134f3

Please sign in to comment.