Skip to content

Commit

Permalink
Update LLVM installed version
Browse files Browse the repository at this point in the history
  • Loading branch information
leewei05 committed Jul 1, 2024
1 parent 28d9087 commit 9f5ee56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ jobs:
- uses: actions/setup-python@v3
- name: Install LLVM
run: |
sudo apt-get install -q -y llvm
sudo add-apt-repository -y 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main'
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install -q -y llvm-18 lld-18 llvm-18-runtime
- name: Install QBE
run: scripts/install-qbe.sh
- name: Install cxxopts
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ TARGET := vitaminc
CXX := g++
CC = $(CXX)
CLANG_TIDY ?= clang-tidy
CXXFLAGS = -g3 -std=c++17 -Wall -MMD -Iinclude -I$(shell llvm-config --includedir) -Werror
CXXFLAGS = -g3 -std=c++17 -Wall -MMD -Iinclude -I$(shell llvm-config-18 --includedir) -Werror
CFLAGS = $(CXXFLAGS)
LDLIBS = -lfmt $(shell llvm-config --libs core)
LDLIBS = -lfmt $(shell llvm-config-18 --libs core)
LEX = lex
# C++ features are used, yacc doesn't suffice
YACC = bison
Expand Down

0 comments on commit 9f5ee56

Please sign in to comment.