File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed
Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Original file line number Diff line number Diff 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 ;;
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ ifdef CFG_ENABLE_DEBUGINFO
144144 CFG_RUSTC_FLAGS += -g
145145else 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
148148endif
149149
150150ifdef SAVE_TEMPS
Original file line number Diff line number Diff 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.
634634CTEST_RUSTC_FLAGS := $$(subst -g,,$$(CTEST_RUSTC_FLAGS ) )
635+ CTEST_RUSTC_FLAGS := $$(subst -Cdebuginfo=1,,$$(CTEST_RUSTC_FLAGS ) )
635636ifdef CFG_ENABLE_DEBUGINFO_TESTS
636637CTEST_RUSTC_FLAGS += -g
637638endif
You can’t perform that action at this time.
0 commit comments