Skip to content

Commit

Permalink
UMA: use -gdwarf-4
Browse files Browse the repository at this point in the history
Signed-off-by: Keith W. Campbell <[email protected]>
  • Loading branch information
keithc-ca committed Nov 13, 2023
1 parent 09c77a9 commit 3cf98fb
Showing 1 changed file with 10 additions and 0 deletions.
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

0 comments on commit 3cf98fb

Please sign in to comment.