Skip to content

Commit faad4e3

Browse files
authored
[Libomptarget] Split PowerPC into separate triples (#88773)
Summary: The previous patch mistakenly merged these when they indeed need to be treated like separate triples because it's what's passed to the test suite.
1 parent 52a88d3 commit faad4e3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

openmp/libomptarget/plugins-nextgen/host/CMakeLists.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,14 @@ else()
5151
endif()
5252

5353
# Define the target specific triples and ELF machine values.
54-
if(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64le$" OR
55-
CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64$")
54+
if(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64le$")
55+
target_compile_definitions(omptarget.rtl.${machine} PRIVATE TARGET_ELF_ID=EM_PPC64)
56+
target_compile_definitions(omptarget.rtl.${machine} PRIVATE
57+
LIBOMPTARGET_NEXTGEN_GENERIC_PLUGIN_TRIPLE="powerpc64le-ibm-linux-gnu")
58+
list(APPEND LIBOMPTARGET_SYSTEM_TARGETS
59+
"powerpc64le-ibm-linux-gnu" "powerpc64le-ibm-linux-gnu-LTO")
60+
set(LIBOMPTARGET_SYSTEM_TARGETS "${LIBOMPTARGET_SYSTEM_TARGETS}" PARENT_SCOPE)
61+
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64$")
5662
target_compile_definitions(omptarget.rtl.${machine} PRIVATE TARGET_ELF_ID=EM_PPC64)
5763
target_compile_definitions(omptarget.rtl.${machine} PRIVATE
5864
LIBOMPTARGET_NEXTGEN_GENERIC_PLUGIN_TRIPLE="powerpc64-ibm-linux-gnu")

0 commit comments

Comments
 (0)