Skip to content

Commit 7bd2427

Browse files
authored
Auto merge of #37365 - alexcrichton:fix-nightlies, r=brson
Try to fix the nightlies Touching up a few pieces after the fix for #37280 landed.
2 parents ac468b6 + f96a4cc commit 7bd2427

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

configure

+16-2
Original file line numberDiff line numberDiff line change
@@ -722,11 +722,25 @@ case "$CFG_RELEASE_CHANNEL" in
722722
nightly )
723723
msg "overriding settings for $CFG_RELEASE_CHANNEL"
724724
CFG_ENABLE_LLVM_ASSERTIONS=1
725-
CFG_ENABLE_DEBUGINFO_LINES=1
725+
726+
# FIXME(#37364) shouldn't have to disable this on windows-gnu
727+
case "$CFG_BUILD" in
728+
*-pc-windows-gnu)
729+
;;
730+
*)
731+
CFG_ENABLE_DEBUGINFO_LINES=1
732+
;;
733+
esac
726734
;;
727735
beta | stable)
728736
msg "overriding settings for $CFG_RELEASE_CHANNEL"
729-
CFG_ENABLE_DEBUGINFO_LINES=1
737+
case "$CFG_BUILD" in
738+
*-pc-windows-gnu)
739+
;;
740+
*)
741+
CFG_ENABLE_DEBUGINFO_LINES=1
742+
;;
743+
esac
730744
;;
731745
dev)
732746
;;

mk/main.mk

+1-1
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

+1
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)