HomePhabricator

Fix the build when LLVM_TARGETS_TO_BUILD is empty.

Description

Fix the build when LLVM_TARGETS_TO_BUILD is empty.

Using LLVMTestingSupport in the LLVM_LINK_COMPONENTS breaks the build when
LLVM_TARGETS_TO_BUILD is set to empty.

Libraries that depend on LLVMTestingSupport need to use
target_link_libraries(<target> PRIVATE LLVMTestingSupport) instead.

This required change was already commited by r341899 to fix another build
issue.

This fixes rdar://problem/44615064.

Details

Committed
ributzkaSep 19 2018, 2:36 PM
Parents
rL342592: [x86] add test for add+not vector fold; NFC
Branches
Unknown
Tags
Unknown