mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-05 23:31:24 +00:00
347579ce46
* contrib: cctz as submodule. update cctz. * pbuilder: add ubuntu bionic, devel * Cmake: mark system includes as SYSTEM * Build fixes * fix * Fix package without compiler * Better * fix * fix * fix * Build fix * fix * fix * fix * Cmake: Add SYSTEM to includes for external libs
47 lines
1.2 KiB
CMake
47 lines
1.2 KiB
CMake
add_definitions(-Wno-error -Wno-unused-parameter -Wno-non-virtual-dtor -U_LIBCPP_DEBUG)
|
|
|
|
add_library(clickhouse-compiler-lib
|
|
driver.cpp
|
|
cc1_main.cpp
|
|
cc1as_main.cpp
|
|
lld.cpp)
|
|
|
|
target_compile_options(clickhouse-compiler-lib PRIVATE -fno-rtti -fno-exceptions -g0)
|
|
|
|
llvm_libs_all(REQUIRED_LLVM_LIBRARIES)
|
|
|
|
message(STATUS "Using LLVM ${LLVM_VERSION}: ${LLVM_INCLUDE_DIRS} : ${REQUIRED_LLVM_LIBRARIES}")
|
|
|
|
target_include_directories(clickhouse-compiler-lib SYSTEM PRIVATE ${LLVM_INCLUDE_DIRS})
|
|
|
|
# This is extracted almost directly from CMakeFiles/.../link.txt in LLVM build directory.
|
|
|
|
target_link_libraries(clickhouse-compiler-lib PRIVATE
|
|
|
|
clangBasic clangCodeGen clangDriver clangFrontend clangFrontendTool
|
|
clangRewriteFrontend clangARCMigrate clangStaticAnalyzerFrontend
|
|
clangParse clangSerialization clangSema clangEdit clangStaticAnalyzerCheckers
|
|
clangASTMatchers clangStaticAnalyzerCore clangAnalysis clangAST clangRewrite clangLex clangBasic
|
|
|
|
lldCOFF
|
|
lldDriver
|
|
lldELF
|
|
#lldMinGW
|
|
lldMachO
|
|
lldReaderWriter
|
|
lldYAML
|
|
#lldCommon
|
|
lldCore
|
|
lldConfig
|
|
|
|
${REQUIRED_LLVM_LIBRARIES}
|
|
|
|
LLVMSupport
|
|
|
|
#Polly
|
|
#PollyISL
|
|
#PollyPPCG
|
|
|
|
PUBLIC ${ZLIB_LIBRARIES} ${EXECINFO_LIBRARY} Threads::Threads
|
|
)
|