mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-12 03:10:03 +00:00

Add cmake support for CLC and ll asm language, the latter includes clang preprocessing stage. Add ctests to check for external function calls. v2: fix typos, style Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Acked-by: Aaron Watry <awatry@gmail.com> Tested-by: Aaron Watry <awatry@gmail.com> Acked-by: Vedran Miletić <vedran@miletic.net> llvm-svn: 347667
12 lines
396 B
CMake
12 lines
396 B
CMake
if(NOT CMAKE_LLAsm_COMPILE_OBJECT)
|
|
set(CMAKE_LLAsm_COMPILE_OBJECT
|
|
"${CMAKE_LLAsm_PREPROCESSOR} -E -P <DEFINES> <INCLUDES> <FLAGS> -x cl <SOURCE> -o - | <CMAKE_LLAsm_COMPILER> -o <OBJECT> ")
|
|
endif()
|
|
|
|
if(NOT CMAKE_LLAsm_CREATE_STATIC_LIBRARY)
|
|
set(CMAKE_LLAsm_CREATE_STATIC_LIBRARY
|
|
"<CMAKE_LLAsm_ARCHIVE> <LINK_FLAGS> -o <TARGET> <OBJECTS>")
|
|
endif()
|
|
|
|
set(CMAKE_INCLUDE_FLAG_LLAsm "-I")
|