build_environment/Windows: Copy llvm debug headers.
authorRay Molenkamp <github@lazydodo.com>
Fri, 8 Mar 2019 13:59:54 +0000 (06:59 -0700)
committerRay Molenkamp <github@lazydodo.com>
Fri, 8 Mar 2019 14:19:48 +0000 (07:19 -0700)
llvm generates some header files at build time that differ between
debug/release causing linker errors when you used the release headers
for a debug build.

build_files/build_environment/cmake/llvm.cmake

index 1aa31bc..e3386b9 100644 (file)
@@ -47,7 +47,8 @@ if(MSVC)
                set(LLVM_HARVEST_COMMAND ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/llvm/ ${HARVEST_TARGET}/llvm/ )
        else()
                set(LLVM_HARVEST_COMMAND
-                       ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/llvm/lib/ ${HARVEST_TARGET}/llvm/debug/lib/
+                       ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/llvm/lib/ ${HARVEST_TARGET}/llvm/debug/lib/ &&
+                       ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/llvm/include/ ${HARVEST_TARGET}/llvm/debug/include/
                )
        endif()
        ExternalProject_Add_Step(ll after_install