Skip to content

Commit 2e25f58

Browse files
authored
Fix ClangIR build (#78)
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.)
1 parent 1d71d73 commit 2e25f58

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ patmat-trunk)
107107
LLVM_ENABLE_RUNTIMES+=";libunwind"
108108
;;
109109
clangir-trunk)
110+
# Does not compile with 9.2.0.
111+
GCC_VERSION=14.2.0
110112
BRANCH=main
111113
URL=https://github.com/llvm/clangir.git
112114
VERSION=clangir-trunk-$(date +%Y%m%d)

0 commit comments

Comments
 (0)