Skip to content

Commit e349d67

Browse files
dkorpelclaude
andcommitted
test runner: pass DMD to druntime build so it isn't rebuilt
ensureDruntime invoked the druntime Makefile without DMD=, so its default DMD path (generated/<os>/<build>/<model>/dmd) pointed at a nonexistent binary on the VisualD CI (dmd lives under RelWithAsserts/), triggering a "make -C .. dmd" that failed compiling build.d against absent Phobos. Pass the existing compiler explicitly. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 8452b80 commit e349d67

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

compiler/test/run.d

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,10 @@ void ensureDruntime(const string[string] env)
258258
make, "-C", druntimeDir,
259259
"MODEL=" ~ env["MODEL"],
260260
"BUILD=" ~ runtimeBuild(env["BUILD"]),
261+
// Pass the existing compiler so the druntime Makefile doesn't try to
262+
// (re)build dmd itself, which fails when the compiler lives in a
263+
// different generated/ subdirectory (e.g. VisualD's RelWithAsserts).
264+
"DMD=" ~ env["DMD"],
261265
];
262266

263267
writefln("Building druntime: %-(%s %)", buildCommand);

0 commit comments

Comments
 (0)