mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-25 21:11:25 +00:00
[runtimes] Ensure required deps for tests targets are actually built
When building compiler-rt via runtimes, many tests fail because tools like FileCheck and count aren't built yet. This is because the RUNTIME_TEST_DEPENDENCIES haven't been added to any of the compiler-rt targets. The fix is to explicitly add any runtimes as test_targets. Differential Revision: https://reviews.llvm.org/D109625
This commit is contained in:
parent
45288edb65
commit
79b4220806
@ -294,6 +294,7 @@ function(runtime_register_target name target)
|
||||
set(runtimes-test-depends-${name} runtimes-test-depends)
|
||||
set(check-runtimes-${name} check-runtimes)
|
||||
list(APPEND ${name}_test_targets runtimes-test-depends-${name} check-runtimes-${name})
|
||||
list(APPEND test_targets ${${name}_test_targets})
|
||||
foreach(target_name IN LISTS SUB_CHECK_TARGETS)
|
||||
set(${target_name}-${name} ${target_name})
|
||||
list(APPEND ${name}_test_targets ${target_name}-${name})
|
||||
|
Loading…
x
Reference in New Issue
Block a user