diff options
| author | Michal Gorny <mgorny@gentoo.org> | 2017-10-12 21:07:43 +0000 |
|---|---|---|
| committer | Michal Gorny <mgorny@gentoo.org> | 2017-10-12 21:07:43 +0000 |
| commit | 4e9e939b4f0fce85c5b6e069b8bbd3e7cc99ef4c (patch) | |
| tree | e2a3d44730d69b4e7772bc05a10b3891db623a32 /compiler-rt | |
| parent | 48e7549691d7dbe3be1a78f7419953fb48181678 (diff) | |
| download | bcm5719-llvm-4e9e939b4f0fce85c5b6e069b8bbd3e7cc99ef4c.tar.gz bcm5719-llvm-4e9e939b4f0fce85c5b6e069b8bbd3e7cc99ef4c.zip | |
[cmake] [asan] Remove unnecessary gtest dep from dynamic tests
Remove the redundant dependency on 'gtest' target from the dynamic tests
in non-MSVC environment. The tests reuse compiled objects
from ASAN_INST_TEST_OBJECTS, and therefore they have been built against
gtest already.
This both fixes the spurious dependency on 'gtest' target that breaks
stand-alone builds, and brings the dynamic tests more in line with
regular tests which do not pass this dependency
to add_compiler_rt_test() through generate_compiler_rt_tests().
Differential Revision: https://reviews.llvm.org/D38840
llvm-svn: 315620
Diffstat (limited to 'compiler-rt')
| -rw-r--r-- | compiler-rt/lib/asan/tests/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/asan/tests/CMakeLists.txt b/compiler-rt/lib/asan/tests/CMakeLists.txt index f8b9f458434..40732080fdd 100644 --- a/compiler-rt/lib/asan/tests/CMakeLists.txt +++ b/compiler-rt/lib/asan/tests/CMakeLists.txt @@ -205,7 +205,7 @@ function(add_asan_tests arch test_runtime) add_compiler_rt_test(AsanDynamicUnitTests "${dynamic_test_name}" "${arch}" SUBDIR "dynamic" OBJECTS ${ASAN_INST_TEST_OBJECTS} - DEPS gtest asan ${ASAN_INST_TEST_OBJECTS} + DEPS asan ${ASAN_INST_TEST_OBJECTS} LINK_FLAGS ${ASAN_DYNAMIC_UNITTEST_INSTRUMENTED_LINK_FLAGS} ) endif() |

