llvm-capstone/libclc/cmake/CMakeCLCInformation.cmake
Daniel Stone cccdd0579b libclc: Don't pass linker flags to CLC/LLAsm
We don't want the regular linker flags for these invocations, since
we're not compiling to the target machine anyway. This fixes things like
'/machine:x64' being unknown when invoked under Windows.

reviewer: jvesely
Differential Revision: https://reviews.llvm.org/D77164
2020-04-14 10:03:27 -04:00

12 lines
334 B
CMake

if(NOT CMAKE_CLC_COMPILE_OBJECT)
set(CMAKE_CLC_COMPILE_OBJECT
"<CMAKE_CLC_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -o <OBJECT> -c <SOURCE> -emit-llvm")
endif()
if(NOT CMAKE_CLC_CREATE_STATIC_LIBRARY)
set(CMAKE_CLC_CREATE_STATIC_LIBRARY
"<CMAKE_CLC_ARCHIVE> -o <TARGET> <OBJECTS>")
endif()
set(CMAKE_INCLUDE_FLAG_CLC "-I")