Skip to content

Commit

Permalink
Fix ClangIR build (#78)
Browse files Browse the repository at this point in the history
Similar to Flang (and likely for similar reasons), gcc 9.2 fails to
build ClangIR. I confirmed that 9.4.0 (which works for Flang) also works
for ClangIR, but it should be more future-proof to use the latest and
greatest gcc version. (Many ClangIR developers use Clang as their host
compiler, so a recent gcc should match that better.)
  • Loading branch information
smeenai authored Dec 6, 2024
1 parent 1d71d73 commit 2e25f58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ patmat-trunk)
LLVM_ENABLE_RUNTIMES+=";libunwind"
;;
clangir-trunk)
# Does not compile with 9.2.0.
GCC_VERSION=14.2.0
BRANCH=main
URL=https://github.com/llvm/clangir.git
VERSION=clangir-trunk-$(date +%Y%m%d)
Expand Down

0 comments on commit 2e25f58

Please sign in to comment.