mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-22 21:41:38 +00:00
[CMake][AIX] Limit tools in external project build
This is a follow on to D85329 which disabled some llvm tools in the runtimes build due to XCOFF64 limitations. This change disables them in other external project builds as well, when no list of tools is specified in the arguments. Reviewed By: hubert.reinterpretcast, stevewan Differential Revision: https://reviews.llvm.org/D88310
This commit is contained in:
parent
cce683e16e
commit
c82257db65
@ -59,14 +59,18 @@ function(llvm_ExternalProject_Add name source_dir)
|
||||
endif()
|
||||
|
||||
if(NOT ARG_TOOLCHAIN_TOOLS)
|
||||
set(ARG_TOOLCHAIN_TOOLS clang lld llvm-ar llvm-ranlib llvm-nm llvm-objdump)
|
||||
if(_cmake_system_name STREQUAL Darwin)
|
||||
list(APPEND ARG_TOOLCHAIN_TOOLS llvm-libtool-darwin llvm-lipo)
|
||||
elseif(_cmake_system_name STREQUAL Windows)
|
||||
list(APPEND ARG_TOOLCHAIN_TOOLS llvm-lib)
|
||||
else()
|
||||
# TODO: These tools don't fully support Mach-O format yet.
|
||||
list(APPEND ARG_TOOLCHAIN_TOOLS llvm-objcopy llvm-strip)
|
||||
set(ARG_TOOLCHAIN_TOOLS clang)
|
||||
# AIX 64-bit XCOFF and big AR format is not yet supported in some of these tools.
|
||||
if(NOT _cmake_system_name STREQUAL AIX)
|
||||
list(APPEND ARG_TOOLCHAIN_TOOLS lld llvm-ar llvm-ranlib llvm-nm llvm-objdump)
|
||||
if(_cmake_system_name STREQUAL Darwin)
|
||||
list(APPEND ARG_TOOLCHAIN_TOOLS llvm-libtool-darwin llvm-lipo)
|
||||
elseif(_cmake_system_name STREQUAL Windows)
|
||||
list(APPEND ARG_TOOLCHAIN_TOOLS llvm-lib)
|
||||
else()
|
||||
# TODO: These tools don't fully support Mach-O format yet.
|
||||
list(APPEND ARG_TOOLCHAIN_TOOLS llvm-objcopy llvm-strip)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
foreach(tool ${ARG_TOOLCHAIN_TOOLS})
|
||||
|
Loading…
x
Reference in New Issue
Block a user