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"