[PATCH] D54701: Fix DynamicLibraryTests build on Windows when LLVM_EXPORT_SYMBOLS_FOR_PLUGINS is ON

Michael Platings via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 28 07:22:48 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL347764: Fix DynamicLibraryTests build on Windows when LLVM_EXPORT_SYMBOLS_FOR_PLUGINS… (authored by michaelplatings, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D54701?vs=175250&id=175690#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D54701/new/

https://reviews.llvm.org/D54701

Files:
  llvm/trunk/unittests/Support/DynamicLibrary/CMakeLists.txt


Index: llvm/trunk/unittests/Support/DynamicLibrary/CMakeLists.txt
===================================================================
--- llvm/trunk/unittests/Support/DynamicLibrary/CMakeLists.txt
+++ llvm/trunk/unittests/Support/DynamicLibrary/CMakeLists.txt
@@ -8,6 +8,13 @@
   )
 set_target_properties(DynamicLibraryLib PROPERTIES FOLDER "Tests")
 
+# extract_symbols.py relies on all its library arguments being in the same
+# directory, so we must set the output directory in the same way as if
+# add_llvm_library was used.
+set_output_directory(DynamicLibraryLib
+  LIBRARY_DIR ${LLVM_LIBRARY_OUTPUT_INTDIR}
+  )
+
 add_llvm_unittest(DynamicLibraryTests
   DynamicLibraryTest.cpp
   )


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54701.175690.patch
Type: text/x-patch
Size: 692 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181128/285d6585/attachment.bin>


More information about the llvm-commits mailing list