File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,7 +52,8 @@ if(NOT CMAKE_SYSTEM_NAME MATCHES "Emscripten")
5252 # Use same platform flags as for Lean executables, in particular from `prepare-llvm-linux.sh`,
5353 # but not Lean-specific `LEAN_EXTRA_CXX_FLAGS` such as fsanitize.
5454 set (CADICAL_CXXFLAGS "${CMAKE_CXX_FLAGS} " )
55- set (CADICAL_LDFLAGS "-Wl,-rpath=\\ $$ORIGIN/../lib" )
55+ string (REPLACE "ROOT" "${CMAKE_BINARY_DIR} /stage1" CADICAL_INTERNAL_LINKER_FLAGS "${LEANC_INTERNAL_LINKER_FLAGS} " )
56+ set (CADICAL_LDFLAGS "${CADICAL_INTERNAL_LINKER_FLAGS} -Wl,-rpath=\\ $$ORIGIN/../lib" )
5657 endif ()
5758 find_program (CCACHE ccache )
5859 if (CCACHE)
Original file line number Diff line number Diff line change @@ -1075,6 +1075,7 @@ string(REPLACE "ROOT" "${CMAKE_BINARY_DIR}" LEANC_INTERNAL_FLAGS "${LEANC_INTERN
10751075string (REPLACE "ROOT" "${CMAKE_BINARY_DIR} " LEANC_INTERNAL_LINKER_FLAGS "${LEANC_INTERNAL_LINKER_FLAGS} " )
10761076
10771077toml_escape ("${LEAN_EXTRA_OPTS} " LEAN_EXTRA_OPTS_TOML )
1078+ toml_escape ("${LEANC_INTERNAL_FLAGS} ${LEANC_INTERNAL_LINKER_FLAGS} " LEAN_MORE_LEANC_ARGS_TOML )
10781079
10791080if (CMAKE_BUILD_TYPE MATCHES "Debug|Release|RelWithDebInfo|MinSizeRel" )
10801081 set (CMAKE_BUILD_TYPE_TOML "${CMAKE_BUILD_TYPE} " )
Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ moreLeanArgs = [${LEAN_EXTRA_OPTS_TOML}]
4646# Uncomment to limit number of reported errors further in case of overwhelming cmdline output
4747#weakLeanArgs = ["-DmaxErrors=1"]
4848
49+ moreLeancArgs = [${LEAN_MORE_LEANC_ARGS_TOML}]
50+
4951${LEAN_EXTRA_LAKEFILE_TOML}
5052
5153[[lean_lib]]
Original file line number Diff line number Diff line change 1- #! /usr/bin/env bash
1+ #! /usr/bin/env nix
2+ #! nix develop ..#oldGlibc --command /usr/bin/env bash
23
34# This script must be called from the repo root.
45# The radar environment variables must be provided.
56# See also the https://github.com/leanprover/radar readme.
67
7- cmake --preset release -DWFAIL=OFF
8+ LLVM_RELEASE=19.1.2
9+ LLVM_TARBALL=" $RADAR_CACHE /llvm/$LLVM_RELEASE .tar.zst"
10+
11+ if [ ! -f " $LLVM_TARBALL " ]; then
12+ mkdir -p " $RADAR_CACHE /llvm"
13+ curl --location -o " $LLVM_TARBALL " " https://github.com/leanprover/lean-llvm/releases/download/$LLVM_RELEASE /lean-llvm-x86_64-linux-gnu.tar.zst"
14+ fi
15+
16+ mkdir -p build/release
17+ cd build/release
18+ eval cmake ../.. \
19+ --preset release $( ../../script/prepare-llvm-linux.sh $LLVM_TARBALL ) \
20+ -DWFAIL=OFF
21+ rm -rf stage2
22+ cp -r stage1 stage2
23+ rm -rf stage3
24+ cp -r stage1 stage3
25+ cd ../..
826make -C build/release -j" $( nproc) " bench-part1
927mv tests/part1.measurements.jsonl " $RADAR_OUT "
1028
Original file line number Diff line number Diff line change 1- #! /usr/bin/env bash
1+ #! /usr/bin/env nix
2+ #! nix develop ..#oldGlibc --command /usr/bin/env bash
23
34# This script must be called from the repo root.
45# The radar environment variables must be provided.
56# See also the https://github.com/leanprover/radar readme.
67
7- cmake --preset release -DWFAIL=OFF
8+ LLVM_RELEASE=19.1.2
9+ LLVM_TARBALL=" $RADAR_CACHE /llvm/$LLVM_RELEASE .tar.zst"
10+
11+ if [ ! -f " $LLVM_TARBALL " ]; then
12+ mkdir -p " $RADAR_CACHE /llvm"
13+ curl --location -o " $LLVM_TARBALL " " https://github.com/leanprover/lean-llvm/releases/download/$LLVM_RELEASE /lean-llvm-x86_64-linux-gnu.tar.zst"
14+ fi
15+
16+ mkdir -p build/release
17+ cd build/release
18+ eval cmake ../.. \
19+ --preset release $( ../../script/prepare-llvm-linux.sh $LLVM_TARBALL ) \
20+ -DWFAIL=OFF
21+ rm -rf stage2
22+ cp -r stage1 stage2
23+ rm -rf stage3
24+ cp -r stage1 stage3
25+ cd ../..
826make -C build/release -j" $( nproc) " bench-part2
927mv tests/part2.measurements.jsonl " $RADAR_OUT "
You can’t perform that action at this time.
0 commit comments