Skip to content

Commit 47ec6cb

Browse files
committed
Fix .testing make for regression tests
This commit fixes a bug that target code cannot be built for regression tests when BUILD is specified with command line arguments. The fix explicitly specifies BUILD argument for target codebase, avoiding the variable being passed from the parent make.
1 parent df2cd12 commit 47ec6cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.testing/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,10 @@ $(BUILD)/%/MOM6: $(BUILD)/%/Makefile FORCE
282282

283283
# Target codebase should use its own build system
284284
$(BUILD)/target/MOM6: $(BUILD)/target FORCE | $(TARGET_CODEBASE)
285-
$(MAKE) -C $(TARGET_CODEBASE)/.testing build/symmetric/MOM6
285+
$(MAKE) -C $(TARGET_CODEBASE)/.testing BUILD=build build/symmetric/MOM6
286286

287287
$(BUILD)/target: | $(TARGET_CODEBASE)
288+
$(MAKE) -C $(TARGET_CODEBASE)/.testing BUILD=build build/symmetric/
288289
ln -s $(abspath $(TARGET_CODEBASE))/.testing/build/symmetric $@
289290

290291
FORCE:

0 commit comments

Comments
 (0)