mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 01:07:04 +08:00
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")
|