File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 3434function (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 ()
@@ -118,9 +119,6 @@ function (get_toolchain_arch_dirname outvar)
118119 set (target "amdgcn-amd-amdhsa" )
119120 elseif ("${arch} " MATCHES "^nvptx" )
120121 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 )
124122 else ()
125123 set (target "${arch}${triple_suffix} " )
126124 endif ()
You can’t perform that action at this time.
0 commit comments