aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.travis.yml15
-rw-r--r--CMakeLists.txt4
2 files changed, 19 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index ea4fc2d..8d480aa 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -151,3 +151,18 @@ matrix:
- git submodule update
script:
- make CXX=clang-15 LLVM_CONF=llvm-config-15
+ - dist: bionic
+ name: llvm16
+ sudo: required
+ language: cpp
+ before_script:
+ - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
+ - sudo apt-get update -y
+ - wget https://apt.llvm.org/llvm.sh
+ - chmod +x llvm.sh
+ - sudo ./llvm.sh 16
+ - sudo apt-get install -y clang-16 llvm-16-dev libclang-common-16-dev libclang-16-dev
+ - git submodule init
+ - git submodule update
+ script:
+ - mkdir build && cd build && cmake ../ -DLLVM_CONF=llvm-config-16 -DCMAKE_CXX_COMPILER=clang++-16 -DUSE_MONOLITH_LIBTOOLING=oFF && make
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 18a1c9b..ce0a106 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -56,6 +56,10 @@ endif()
target_link_libraries(cgrep ${LLVM_SYS_LIBS})
target_link_libraries(cgrep ${LLVM_LIBS})
+if(LLVM_PACKAGE_VERSION VERSION_EQUAL "16.0.0" OR LLVM_PACKAGE_VERSION VERSION_GREATER "16.0.0")
+ target_link_libraries(cgrep clangSupport)
+endif()
+
include_directories("${PROJECT_SOURCE_DIR}/cfe-extra")
target_include_directories(cgrep PUBLIC "${PROJECT_BINARY_DIR}" "${PROJECT_SOURCE_DIR/cfe-extra}")