Skip to content

Commit

Permalink
Merge pull request #7178 from keithc-ca/dwarf4
Browse files Browse the repository at this point in the history
UMA: use -gdwarf-4
  • Loading branch information
babsingh authored Nov 14, 2023
2 parents 10bcf8f + 3cf98fb commit 07a175a
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 07a175a

Please sign in to comment.