Skip to content

Commit a4510aa

Browse files
authored
[flang-rt] replace the triple dir to 'aix' for flang-rt to be consistent with clang on AIX. (#130875)
This change is to put `libflang_rt.runtime.a` into `build/lib/clang/21/lib/aix/libflang_rt.runtime.a`, which is consistent with clang on AIX.
1 parent 3959bbc commit a4510aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flang-rt/cmake/modules/GetToolchainDirs.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@
3434
function (get_toolchain_library_subdir outvar)
3535
set(outval "lib")
3636

37-
if (APPLE)
37+
if (APPLE OR (UNIX AND CMAKE_SYSTEM_NAME MATCHES "AIX"))
3838
# Required to be "darwin" for MachO toolchain.
39+
# AIX uses lib/${os_dir} as if LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF
3940
get_toolchain_os_dirname(os_dirname)
4041
set(outval "${outval}/${os_dirname}")
4142
else ()

0 commit comments

Comments
 (0)