[PATCH] D15938: [test-suite] Prevent timeit and fpcmp from being rebuilt every time make is called.

Chad Rosier via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 7 05:48:28 PST 2016


mcrosier added inline comments.

================
Comment at: tools/CMakeLists.txt:1
@@ -1,2 +1,2 @@
-add_executable(timeit-target timeit.c)
+add_executable(timeit-target ${CMAKE_CURRENT_SOURCE_DIR}/timeit.c)
 
----------------
MatzeB wrote:
> Is this change necessary or just here by accident?
As far as I've read while trying to find a way to compile the same source in two ways, this change to the dependency for timeit-target is necessary, because cmake somehow loses the ability to find the source file in the same directory unless specifically shown where it is.


Repository:
  rL LLVM

http://reviews.llvm.org/D15938





More information about the llvm-commits mailing list