summaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorYevhen Babiichuk (DustDFG) <dfgdust@gmail.com>2024-11-18 12:12:32 +0200
committerYevhen Babiichuk (DustDFG) <dfgdust@gmail.com>2024-11-18 13:25:47 +0200
commit1250681a4f43282c6e2b466c527d748a940227fa (patch)
tree5c3a813d83276960b0b79c9c1963ed450f90c3a0 /SConstruct
parent5efd124ca10bf46df62fa2441d80589777e54a5a (diff)
downloadredot-engine-1250681a4f43282c6e2b466c527d748a940227fa.tar.gz
SCons: pass `ninja_file` variable in tool instead of default name
Noticed that when I run with `ninja_file` it wasn't created even though in terminal I saw that the file will be generated Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com>
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct4
1 files changed, 2 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index 234a6624f1..7c7d3d25a0 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1050,7 +1050,7 @@ if env["ninja"]:
SetOption("experimental", "ninja")
env["NINJA_FILE_NAME"] = env["ninja_file"]
env["NINJA_DISABLE_AUTO_RUN"] = not env["ninja_auto_run"]
- env.Tool("ninja", "build.ninja")
+ env.Tool("ninja", env["ninja_file"])
# Threads
if env["threads"]:
@@ -1112,7 +1112,7 @@ atexit.register(print_elapsed_time)
def purge_flaky_files():
- paths_to_keep = ["build.ninja"]
+ paths_to_keep = [env["ninja_file"]]
for build_failure in GetBuildFailures():
path = build_failure.node.path
if os.path.isfile(path) and path not in paths_to_keep: