Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UMA: use -gdwarf-4 #7178

Merged
merged 1 commit into from
Nov 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions omrmakefiles/rules.linux.mk
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,16 @@ ifeq (1,$(OMR_DEBUG))
endif
endif

ifneq (,$(findstring -gdwarf-, $(GLOBAL_CFLAGS) $(GLOBAL_CXXFLAGS)))
# Don't override if '-gdwarf-N' is already specified.
else ifeq (gcc,$(OMR_TOOLCHAIN))
# Tell gcc to use DWARF version 4, not 5 (which is the default for compiler
# versions 11+). All GNU compiler versions, that might reasonably be used,
# understand this option, so this doesn't need to check the compiler version.
GLOBAL_CFLAGS += -gdwarf-4
GLOBAL_CXXFLAGS += -gdwarf-4
endif

#-- Add Platform flags
ifeq (x86,$(OMR_HOST_ARCH))
ifeq (1,$(OMR_ENV_DATA64))
Expand Down
Loading