[PATCH] D85329: [AIX] Don't try to use llvm tools while building runtimes
David Tenty via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 5 10:25:35 PDT 2020
daltenty created this revision.
daltenty added reviewers: DiggerLin, stevewan, hubert.reinterpretcast.
Herald added subscribers: llvm-commits, mgorny.
Herald added a reviewer: alexshap.
Herald added a project: LLVM.
daltenty requested review of this revision.
since 64-bit XCOFF and big AR format is not yet supported in some of these tools.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D85329
Files:
llvm/runtimes/CMakeLists.txt
Index: llvm/runtimes/CMakeLists.txt
===================================================================
--- llvm/runtimes/CMakeLists.txt
+++ llvm/runtimes/CMakeLists.txt
@@ -274,6 +274,11 @@
endif()
endforeach()
+ # 64-bit XCOFF and big AR format is not yet supported in some of these tools.
+ if(NOT target MATCHES aix)
+ set(${target}_toolchain_tools lld llvm-ar llvm-lipo llvm-ranlib llvm-nm llvm-objcopy llvm-objdump llvm-strip)
+ endif()
+
llvm_ExternalProject_Add(builtins-${target}
${compiler_rt_path}/lib/builtins
DEPENDS ${ARG_DEPENDS}
@@ -287,7 +292,7 @@
-DCMAKE_ASM_COMPILER_WORKS=ON
-DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON
${${target}_extra_args}
- TOOLCHAIN_TOOLS clang lld llvm-ar llvm-lipo llvm-ranlib llvm-nm llvm-objcopy llvm-objdump llvm-strip
+ TOOLCHAIN_TOOLS clang ${target}_toolchain_tools
USE_TOOLCHAIN
${EXTRA_ARGS})
endfunction()
@@ -487,6 +492,11 @@
list(APPEND EXTRA_ARGS STRIP_TOOL ${CMAKE_CURRENT_BINARY_DIR}/llvm-strip-link)
endif()
+ # 64-bit XCOFF and big AR format is not yet supported in some of these tools.
+ if(NOT target MATCHES aix)
+ set(${name}_toolchain_tools lld llvm-ar llvm-lipo llvm-ranlib llvm-nm llvm-objcopy llvm-objdump llvm-strip)
+ endif()
+
llvm_ExternalProject_Add(runtimes-${name}
${CMAKE_CURRENT_SOURCE_DIR}
DEPENDS ${${name}_deps} ${CXX_HEADER_TARGET}
@@ -505,7 +515,7 @@
-DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON
-DLLVM_RUNTIMES_TARGET=${name}
${${name}_extra_args}
- TOOLCHAIN_TOOLS clang lld llvm-ar llvm-lipo llvm-ranlib llvm-nm llvm-objcopy llvm-objdump llvm-strip
+ TOOLCHAIN_TOOLS clang ${{name}_toolchain_tools}
EXTRA_TARGETS ${${name}_extra_targets}
${${name}_test_targets}
USE_TOOLCHAIN
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85329.283291.patch
Type: text/x-patch
Size: 2357 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200805/e50eb830/attachment.bin>
More information about the llvm-commits
mailing list