From 6f3521c5769087431d5d5dfc0b270d13c2663343 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sat, 19 Mar 2022 00:27:10 -0400 Subject: [PATCH] Make sure to rebuild HELLO properly when HULK changes --- Rsconscript | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Rsconscript b/Rsconscript index 010ae00..1a9aba8 100644 --- a/Rsconscript +++ b/Rsconscript @@ -92,7 +92,9 @@ hello_env = env "hello", use: %w[ldc2 x86_64-w64-mingw32-gcc] do |env| env["sources"] = glob("src/hello/**/*.d") env["sources"] += glob("uefi-d/source/**/*.d") env.HulkBinObj("^/hulk_bin.S", hulk_env.expand("^/hulk.bin")) - env["sources"] << "^/hulk_bin.S" + env.Object("^/hulk_bin.o", "^/hulk_bin.S") + env.depends("^/hulk_bin.o", hulk_env.expand("^/hulk.bin")) + env["sources"] << "^/hulk_bin.o" env["DFLAGS"] += %w[-mtriple=x86_64-unknown-windows-coff --betterC -release -O3 --wi --enable-cross-module-inlining] env["D_IMPORT_PATH"] += %w[src/hello src/hulk uefi-d/source src/common] env["LD"] = "x86_64-w64-mingw32-gcc"