File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -450,13 +450,16 @@ if( LLVM_ENABLE_PIC )
450450 # Enable interprocedural optimizations for non-inline functions which would
451451 # otherwise be disabled due to GCC -fPIC's default.
452452 # Note: GCC<10.3 has a bug on SystemZ.
453- #
453+ # Note: Default on AIX is "no semantic interposition".
454454 # Note: Clang allows IPO for -fPIC so this optimization is less effective.
455455 # Clang 13 has a bug related to -fsanitize-coverage
456456 # -fno-semantic-interposition (https://reviews.llvm.org/D117183).
457- if ((CMAKE_COMPILER_IS_GNUCXX AND
458- NOT (LLVM_NATIVE_ARCH STREQUAL "SystemZ" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10.3))
459- OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION GREATER_EQUAL 14))
457+ if ((NOT ("${CMAKE_SYSTEM_NAME} " MATCHES "AIX" ))
458+ AND ((CMAKE_COMPILER_IS_GNUCXX AND
459+ NOT (LLVM_NATIVE_ARCH STREQUAL "SystemZ"
460+ AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10.3))
461+ OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"
462+ AND CMAKE_CXX_COMPILER_VERSION GREATER_EQUAL 14)))
460463 add_flag_if_supported("-fno-semantic-interposition" FNO_SEMANTIC_INTERPOSITION)
461464 endif ()
462465 endif ()
You can’t perform that action at this time.
0 commit comments