diff options
author | Nico Weber <nicolasweber@gmx.de> | 2018-09-14 17:34:46 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2018-09-14 17:34:46 +0000 |
commit | 1739dbf6a6f8cac7850ca820f338439e1f30d82d (patch) | |
tree | ef6e0992d66aa4b057e84458b13db6496c3a066e /llvm/unittests/DebugInfo | |
parent | 66945cf6e314a244d7ee51be41952d57fbd48753 (diff) | |
download | bcm5719-llvm-1739dbf6a6f8cac7850ca820f338439e1f30d82d.tar.gz bcm5719-llvm-1739dbf6a6f8cac7850ca820f338439e1f30d82d.zip |
Introduce explicit add_unittest_with_input_files target for tests that use llvm::getInputFileDirectory()
Using llvm::getInputFileDirectory() in unit tests is discouraged, so require an explicit opt-in.
This way, cmake also writes ~60 fewer unused files to disk.
Differential Revision: https://reviews.llvm.org/D52095
llvm-svn: 342248
Diffstat (limited to 'llvm/unittests/DebugInfo')
-rw-r--r-- | llvm/unittests/DebugInfo/PDB/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/DebugInfo/PDB/CMakeLists.txt b/llvm/unittests/DebugInfo/PDB/CMakeLists.txt index 842a42b6802..4edfd50c148 100644 --- a/llvm/unittests/DebugInfo/PDB/CMakeLists.txt +++ b/llvm/unittests/DebugInfo/PDB/CMakeLists.txt @@ -4,7 +4,7 @@ set(LLVM_LINK_COMPONENTS DebugInfoPDB ) -add_llvm_unittest(DebugInfoPDBTests +add_llvm_unittest_with_input_files(DebugInfoPDBTests HashTableTest.cpp NativeSymbolReuseTest.cpp StringTableBuilderTest.cpp |