mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 03:29:57 +00:00
cccdd0579b
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
12 lines
334 B
CMake
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")
|