Skip to content

Commit 73dd411

Browse files
Add llvmflang-* release version support (#101)
Add a wildcard case for llvmflang-{version} to build release versions of LLVM flang. Uses the same configuration as llvmflang-trunk but checks out from a git tag instead of the main branch. This enables building flang releases from LLVM 13+ (the first version with the flang-new binary). Refs: compiler-explorer/compiler-explorer#7757 🤖 Generated by LLM (Claude, via OpenClaw) Co-authored-by: mattgodbolt-molty <mattgodbolt-molty@users.noreply.github.com>
1 parent 2347378 commit 73dd411

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

build/build.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,19 @@ llvmflang-trunk)
9898
# See https://github.com/compiler-explorer/clang-builder/issues/27
9999
CMAKE_EXTRA_ARGS+=("-DCMAKE_CXX_STANDARD=17" "-DLLVM_PARALLEL_COMPILE_JOBS=12")
100100
;;
101+
llvmflang-*)
102+
# Release versions of LLVM flang (13+).
103+
BASENAME=llvmflang
104+
GCC_VERSION=9.4.0
105+
LLVM_ENABLE_PROJECTS="mlir;flang;clang"
106+
LLVM_ENABLE_RUNTIMES=""
107+
NINJA_TARGET_RUNTIMES=
108+
CMAKE_EXTRA_ARGS+=("-DCMAKE_CXX_STANDARD=17" "-DLLVM_PARALLEL_COMPILE_JOBS=12")
109+
110+
VERSION=${VERSION#llvmflang-}
111+
TAG=llvmorg-${VERSION}
112+
URL=https://github.com/llvm/llvm-project.git
113+
;;
101114
relocatable-trunk)
102115
BRANCH=trivially-relocatable
103116
URL=https://github.com/Quuxplusone/llvm-project.git

0 commit comments

Comments
 (0)