Skip to content

Commit

Permalink
Merge pull request #18346 from hzongaro/no-omit-frame-pointer-experiment
Browse files Browse the repository at this point in the history
Use -fno-omit-frame-pointer on x86_64-mac JIT builds
  • Loading branch information
keithc-ca committed Oct 26, 2023
2 parents 350b747 + 30dc783 commit 39fd615
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion runtime/compiler/CMakeLists.txt
Expand Up @@ -237,11 +237,20 @@ if(OMR_OS_LINUX OR OMR_OS_OSX)
-Wno-deprecated
-Wno-enum-compare
-Wno-write-strings
-fomit-frame-pointer
-fasynchronous-unwind-tables
-Wreturn-type
-pthread
)
# Workaround for problem seen in x86_64-macOS builds for JDK 22.
if((NOT JAVA_SPEC_VERSION LESS 22) AND OMR_OS_OSX AND OMR_ARCH_X86)
list(APPEND J9_SHAREDFLAGS
-fno-omit-frame-pointer
)
else()
list(APPEND J9_SHAREDFLAGS
-fomit-frame-pointer
)
endif()

# Platform-specific CXX flags, also derived from the makefiles.
list(APPEND J9_CXXFLAGS
Expand Down

0 comments on commit 39fd615

Please sign in to comment.