[PATCH] D38917: [xray] Fix CMake for X-RAY tests

George Karpenkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 14 14:38:30 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL315827: [xray] Fix CMake for X-RAY tests (authored by george.karpenkov).

Changed prior to commit:
  https://reviews.llvm.org/D38917?vs=119003&id=119045#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D38917

Files:
  compiler-rt/trunk/lib/xray/tests/CMakeLists.txt


Index: compiler-rt/trunk/lib/xray/tests/CMakeLists.txt
===================================================================
--- compiler-rt/trunk/lib/xray/tests/CMakeLists.txt
+++ compiler-rt/trunk/lib/xray/tests/CMakeLists.txt
@@ -20,13 +20,14 @@
       generate_compiler_rt_tests(TEST_OBJECTS
         XRayUnitTests "${testname}-${arch}-Test" "${arch}"
         SOURCES ${TEST_SOURCES} ${COMPILER_RT_GTEST_SOURCE}
-        DEPS gtest xray
+        DEPS gtest xray llvm-xray
         CFLAGS ${XRAY_UNITTEST_CFLAGS}
         LINK_FLAGS -fxray-instrument
           ${TARGET_LINK_FLAGS}
           -lstdc++ -lm ${CMAKE_THREAD_LIBS_INIT}
           -lpthread
           -ldl -lrt)
+      set_target_properties(XRayUnitTests PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
     endforeach()
   endif()
 endmacro()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38917.119045.patch
Type: text/x-patch
Size: 827 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171014/aca49f17/attachment.bin>


More information about the llvm-commits mailing list