Skip to content

Commit

Permalink
UMA: use DWARF version 4 on Linux
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 Jan 3, 2024
1 parent 7cba421 commit 6d1540e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions runtime/makelib/targets.mk.linux.inc.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@ ifdef j9vm_uma_gnuDebugSymbols
<#if uma.spec.processor.x86 || uma.spec.processor.amd64>
ASFLAGS += --gdwarf2
</#if>

# 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 these options, so this doesn't need to check the compiler version.
CFLAGS += -gdwarf-4
CXXFLAGS += -gdwarf-4
endif

<#if uma.spec.processor.x86 || uma.spec.processor.amd64 || uma.spec.processor.riscv64>
Expand Down

0 comments on commit 6d1540e

Please sign in to comment.