[PATCH] D142727: [AIX][CMake] Use top-level tools in llvm_ExternalProject_Add
David Tenty via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 30 13:58:40 PST 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG11066449d49e: [AIX][CMake] Use top-level tools in llvm_ExternalProject_Add (authored by daltenty).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142727/new/
https://reviews.llvm.org/D142727
Files:
llvm/cmake/modules/LLVMExternalProjectUtils.cmake
Index: llvm/cmake/modules/LLVMExternalProjectUtils.cmake
===================================================================
--- llvm/cmake/modules/LLVMExternalProjectUtils.cmake
+++ llvm/cmake/modules/LLVMExternalProjectUtils.cmake
@@ -239,7 +239,7 @@
set(sysroot_arg -DCMAKE_SYSROOT=${CMAKE_SYSROOT})
endif()
- if(CMAKE_CROSSCOMPILING)
+ if(CMAKE_CROSSCOMPILING OR _cmake_system_name STREQUAL AIX)
set(compiler_args -DCMAKE_ASM_COMPILER=${CMAKE_ASM_COMPILER}
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
@@ -251,6 +251,8 @@
-DCMAKE_OBJDUMP=${CMAKE_OBJDUMP}
-DCMAKE_STRIP=${CMAKE_STRIP}
-DCMAKE_READELF=${CMAKE_READELF})
+ endif()
+ if(CMAKE_CROSSCOMPILING)
set(llvm_config_path ${LLVM_CONFIG_PATH})
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142727.493414.patch
Type: text/x-patch
Size: 926 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230130/710e8924/attachment.bin>
More information about the llvm-commits
mailing list