mk: Filter debuginfo=1 from test flags
Fixes tests with `--enable-debuginfo-lines`.
This commit is contained in:
parent
1bc7f8f49f
commit
174838f7f9
@ -144,7 +144,7 @@ ifdef CFG_ENABLE_DEBUGINFO
|
||||
CFG_RUSTC_FLAGS += -g
|
||||
else ifdef CFG_ENABLE_DEBUGINFO_LINES
|
||||
$(info cfg: enabling line number debuginfo (CFG_ENABLE_DEBUGINFO_LINES))
|
||||
CFG_RUSTC_FLAGS += -C debuginfo=1
|
||||
CFG_RUSTC_FLAGS += -Cdebuginfo=1
|
||||
endif
|
||||
|
||||
ifdef SAVE_TEMPS
|
||||
|
@ -632,6 +632,7 @@ endif
|
||||
# is a separate choice from whether to pass `-g` when building the
|
||||
# compiler and standard library themselves.
|
||||
CTEST_RUSTC_FLAGS := $$(subst -g,,$$(CTEST_RUSTC_FLAGS))
|
||||
CTEST_RUSTC_FLAGS := $$(subst -Cdebuginfo=1,,$$(CTEST_RUSTC_FLAGS))
|
||||
ifdef CFG_ENABLE_DEBUGINFO_TESTS
|
||||
CTEST_RUSTC_FLAGS += -g
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user