Skip to content

Commit a4a51f1

Browse files
committed
Ignore AIX version in ABI list
1 parent a1c1112 commit a4a51f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libcxx/lib/abi/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ function(cxx_abi_list_identifier result triple abi_library abi_version unstable
1616
elseif("${triple}" MATCHES "freebsd")
1717
# Ignore the major and minor versions of freebsd targets.
1818
string(REGEX REPLACE "freebsd[0-9]+\\.[0-9]+" "freebsd" triple "${triple}")
19+
elseif("${triple}" MATCHES "aix")
20+
# Ignore the V.R.M.F version string of aix targets.
21+
string(REGEX REPLACE "aix[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+" "aix" triple "${triple}")
1922
endif()
2023
list(APPEND abi_properties "${triple}")
2124
list(APPEND abi_properties "${abi_library}")
@@ -45,6 +48,7 @@ if (CMAKE_CXX_COMPILER_TARGET)
4548
else()
4649
set(triple "${LLVM_DEFAULT_TARGET_TRIPLE}")
4750
endif()
51+
4852
cxx_abi_list_identifier(abi_list_identifier
4953
"${triple}"
5054
"${LIBCXX_CXX_ABI}"

0 commit comments

Comments
 (0)