Skip to content

Commit

Permalink
Merge pull request #80 from ksromanov/patch-1
Browse files Browse the repository at this point in the history
Update .travis.yml — enable LLVM 18
  • Loading branch information
dbeer1 authored Jul 15, 2024
2 parents f951676 + 5c62a20 commit da8ee45
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 11 deletions.
21 changes: 13 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,38 +8,43 @@ matrix:
compiler: gcc
language: cpp
sudo: true
script: docker build --build-arg TARGET_LLVM_VERSION=10 .
script: docker build --progress plain --build-arg TARGET_LLVM_VERSION=10 .
- os: linux
compiler: gcc
language: cpp
sudo: true
script: docker build --build-arg TARGET_LLVM_VERSION=11 .
script: docker build --progress plain --build-arg TARGET_LLVM_VERSION=11 .
- os: linux
compiler: gcc
language: cpp
sudo: true
script: docker build --build-arg TARGET_LLVM_VERSION=12 .
script: docker build --progress plain --build-arg TARGET_LLVM_VERSION=12 .
- os: linux
compiler: gcc
language: cpp
sudo: true
script: docker build --build-arg TARGET_LLVM_VERSION=13 .
script: docker build --progress plain --build-arg TARGET_LLVM_VERSION=13 .
- os: linux
dist: jammy
compiler: gcc
language: cpp
sudo: true
script: docker build --build-arg TARGET_LLVM_VERSION=14 --build-arg BASE_IMAGE=ubuntu:22.04 --build-arg GCC_VERSION=9 --build-arg IMAGE_REPO=jammy .
script: docker build --progress plain --build-arg TARGET_LLVM_VERSION=14 --build-arg BASE_IMAGE=ubuntu:22.04 --build-arg GCC_VERSION=9 --build-arg IMAGE_REPO=jammy .
- os: linux
dist: jammy
compiler: gcc
language: cpp
sudo: true
script: docker build --build-arg TARGET_LLVM_VERSION=15 --build-arg BASE_IMAGE=ubuntu:22.04 --build-arg GCC_VERSION=9 --build-arg IMAGE_REPO=jammy .
script: docker build --progress plain --build-arg TARGET_LLVM_VERSION=15 --build-arg BASE_IMAGE=ubuntu:22.04 --build-arg GCC_VERSION=9 --build-arg IMAGE_REPO=jammy .
- os: linux
dist: jammy
compiler: gcc
language: cpp
sudo: true
script: docker build --build-arg TARGET_LLVM_VERSION=17 --build-arg BASE_IMAGE=ubuntu:22.04 --build-arg GCC_VERSION=9 --build-arg IMAGE_REPO=jammy .

script: docker build --progress plain --build-arg TARGET_LLVM_VERSION=17 --build-arg BASE_IMAGE=ubuntu:22.04 --build-arg GCC_VERSION=9 --build-arg IMAGE_REPO=jammy .
- os: linux
dist: jammy
compiler: gcc
language: cpp
sudo: true
script: docker build --progress plain --build-arg TARGET_LLVM_VERSION=18 --build-arg BASE_IMAGE=ubuntu:22.04 --build-arg GCC_VERSION=12 --build-arg IMAGE_REPO=jammy .
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ RUN apt-get install -y \
# Clang & friends
clang-"$TARGET_LLVM_VERSION" \
libclang-common-"$TARGET_LLVM_VERSION"-dev \
libclang-"$TARGET_LLVM_VERSION"-dev \
# libc++
libc++-"$TARGET_LLVM_VERSION"-dev
libclang-"$TARGET_LLVM_VERSION"-dev

# LLVM 18 produces an ABI conflict
RUN if [ $TARGET_LLVM_VERSION -lt 18 ] ; then apt-get install -y libc++-"$TARGET_LLVM_VERSION"-dev; fi

# Set up build environment
ENV CC=/usr/bin/gcc-"$GCC_VERSION" \
Expand Down
6 changes: 6 additions & 0 deletions src/tool_application_support.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@
#include <llvm/Option/Option.h>
#include <llvm/Support/ErrorHandling.h>
#include <llvm/Support/FileSystem.h>

#if LLVM_VERSION_MAJOR >= 18
#include <llvm/TargetParser/Host.h>
#else
#include <llvm/Support/Host.h>
#endif

#include <llvm/Support/Path.h>
#include <llvm/Support/Process.h>

Expand Down

0 comments on commit da8ee45

Please sign in to comment.