Skip to content

Commit 25c8fee

Browse files
authored
Merge pull request torvalds#531 from fbq/fix/debuginfo
Makefile: rust: Make debuginfo independent on whether llvm-as is used
2 parents d285143 + bc267a0 commit 25c8fee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,12 +937,13 @@ endif
937937

938938
ifndef CONFIG_AS_IS_LLVM
939939
KBUILD_AFLAGS += -Wa,-gdwarf-2
940+
endif
941+
940942
ifdef CONFIG_DEBUG_INFO_REDUCED
941943
DEBUG_RUSTFLAGS += -Cdebuginfo=1
942944
else
943945
DEBUG_RUSTFLAGS += -Cdebuginfo=2
944946
endif
945-
endif
946947

947948
ifndef CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT
948949
dwarf-version-$(CONFIG_DEBUG_INFO_DWARF4) := 4

0 commit comments

Comments
 (0)