[Parallel_libs-commits] [PATCH] D24368: [StreamExecutor] Make SE work with an in-tree LLVM build.

Justin Lebar via Parallel_libs-commits parallel_libs-commits at lists.llvm.org
Thu Sep 8 18:17:22 PDT 2016


jlebar added inline comments.

================
Comment at: streamexecutor/lib/CMakeLists.txt:2
@@ +1,3 @@
+macro(add_se_library name)
+  add_llvm_library(${name} ${ARGN})
+  set_target_properties(${name} PROPERTIES FOLDER "streamexecutor libraries")
----------------
jhen wrote:
> This breaks the standalone build because it doesn't recognize `add_llvm_library`.
Right.

I am not entirely hep to this jive, so I know I'm missing some stuff.  But lld uses add_llvm_library, and clang uses llvm_add_library (which would have the same problem?).

So my question is whether we can't do whatever they do, and be compatible with whatever types of builds they are compatible with?

If the standalone build uses llvm's headers, can it not also use its CMake files?

Same for add_unittest.


https://reviews.llvm.org/D24368





More information about the Parallel_libs-commits mailing list