summaryrefslogtreecommitdiff
path: root/clang/examples
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2020-05-11 23:41:08 +0300
committerMartin Storsjö <martin@martin.st>2020-05-11 23:51:14 +0300
commit609ef948387ba40e3693c2bd693d82ca34dcdc02 (patch)
tree177a428a2524d37b44b5f7504bd2e64749be1092 /clang/examples
parentd12d05a73142af287a698e5df62d7b7b1eefdf3e (diff)
downloadllvm-609ef948387ba40e3693c2bd693d82ca34dcdc02.tar.gz
[CMake] Fix building with -DBUILD_SHARED_LIBS=ON on mingw
Set the right target name in clang/examples/Attribute. Add a missing dependency in the TableGen GlobalISel sublibrary. Skip building the Bye pass plugin example on windows; plugins that should have undefined symbols that are found in the host process aren't supported on windows - this matches what was done for a unit test in bc8e44218810c0db6328b9809c959ceb7d43e3f5.
Diffstat (limited to 'clang/examples')
-rw-r--r--clang/examples/Attribute/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/examples/Attribute/CMakeLists.txt b/clang/examples/Attribute/CMakeLists.txt
index 19323bb0962b..ed02f5e5992f 100644
--- a/clang/examples/Attribute/CMakeLists.txt
+++ b/clang/examples/Attribute/CMakeLists.txt
@@ -1,7 +1,7 @@
add_llvm_library(Attribute MODULE Attribute.cpp PLUGIN_TOOL clang)
if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN))
- target_link_libraries(AnnotateFunctions ${cmake_2_8_12_PRIVATE}
+ target_link_libraries(Attribute ${cmake_2_8_12_PRIVATE}
clangAST
clangBasic
clangFrontend