1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Add AMDGPU MC unittests only when AMDGPU target is being built

Fixes the build failures introduced by 24698e526f619271705fe72bcaa928be9bc82484
This commit is contained in:
Ram Nalamothu 2020-03-23 21:26:02 +05:30 committed by Matt Arsenault
parent fe4a3fd086
commit eae9146bb3

View File

@ -1,3 +1,9 @@
foreach(t ${LLVM_TARGETS_TO_BUILD})
if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${t})
add_subdirectory(${t})
endif()
endforeach()
set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
MC
@ -13,4 +19,3 @@ add_llvm_unittest(MCTests
TargetRegistry.cpp
)
add_subdirectory(AMDGPU)