llvm-project/libclc/cmake/CMakeCLCCompiler.cmake.in
Jan Vesely 2ce1d090c2 Add cmake build system
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
2018-11-27 16:07:19 +00:00

10 lines
330 B
CMake

set(CMAKE_CLC_COMPILER "@CMAKE_CLC_COMPILER@")
set(CMAKE_CLC_COMPILER_LOADED 1)
set(CMAKE_CLC_SOURCE_FILE_EXTENSIONS cl)
set(CMAKE_CLC_OUTPUT_EXTENSION .bc)
set(CMAKE_CLC_OUTPUT_EXTENSION_REPLACE 1)
set(CMAKE_STATIC_LIBRARY_PREFIX_CLC "")
set(CMAKE_STATIC_LIBRARY_SUFFIX_CLC ".bc")
set(CMAKE_CLC_COMPILER_ENV_VAR "CLC_COMPILER")