Skip to content

Commit 174838f

Browse files
committed
mk: Filter debuginfo=1 from test flags
Fixes tests with `--enable-debuginfo-lines`.
1 parent 1bc7f8f commit 174838f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

mk/main.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ ifdef CFG_ENABLE_DEBUGINFO
144144
CFG_RUSTC_FLAGS += -g
145145
else ifdef CFG_ENABLE_DEBUGINFO_LINES
146146
$(info cfg: enabling line number debuginfo (CFG_ENABLE_DEBUGINFO_LINES))
147-
CFG_RUSTC_FLAGS += -C debuginfo=1
147+
CFG_RUSTC_FLAGS += -Cdebuginfo=1
148148
endif
149149

150150
ifdef SAVE_TEMPS

mk/tests.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,7 @@ endif
632632
# is a separate choice from whether to pass `-g` when building the
633633
# compiler and standard library themselves.
634634
CTEST_RUSTC_FLAGS := $$(subst -g,,$$(CTEST_RUSTC_FLAGS))
635+
CTEST_RUSTC_FLAGS := $$(subst -Cdebuginfo=1,,$$(CTEST_RUSTC_FLAGS))
635636
ifdef CFG_ENABLE_DEBUGINFO_TESTS
636637
CTEST_RUSTC_FLAGS += -g
637638
endif

0 commit comments

Comments
 (0)