Skip to content

Commit 558a64c

Browse files
committed
[flang-rt] replace the triple dir to 'aix' for flang-rt to be consistent with clang on AIX.
1 parent 5f21ee2 commit 558a64c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

flang-rt/cmake/modules/GetToolchainDirs.cmake

+3
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ function (get_toolchain_arch_dirname outvar)
118118
set(target "amdgcn-amd-amdhsa")
119119
elseif("${arch}" MATCHES "^nvptx")
120120
set(target "nvptx64-nvidia-cuda")
121+
elseif(UNIX AND CMAKE_SYSTEM_NAME MATCHES "AIX")
122+
# Put at lib/aix to be consistent with clang on AIX.
123+
string(TOLOWER "${CMAKE_SYSTEM_NAME}" target)
121124
else()
122125
set(target "${arch}${triple_suffix}")
123126
endif()

0 commit comments

Comments
 (0)