summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/DebugInfo
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2018-09-14 17:34:46 +0000
committerNico Weber <nicolasweber@gmx.de>2018-09-14 17:34:46 +0000
commit1739dbf6a6f8cac7850ca820f338439e1f30d82d (patch)
treeef6e0992d66aa4b057e84458b13db6496c3a066e /llvm/unittests/DebugInfo
parent66945cf6e314a244d7ee51be41952d57fbd48753 (diff)
downloadbcm5719-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.txt2
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
OpenPOWER on IntegriCloud