From f6c2489a3316821dba87cad04858b5da3956e231 Mon Sep 17 00:00:00 2001 From: Andrey Pavlenko Date: Tue, 27 Oct 2026 20:22:28 +0000 Subject: [PATCH 1/2] Export dependency on GcJitEngine --- lib/gc/CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/gc/CMakeLists.txt b/lib/gc/CMakeLists.txt index 5d6c09ea..e06fc854 100644 --- a/lib/gc/CMakeLists.txt +++ b/lib/gc/CMakeLists.txt @@ -3,8 +3,14 @@ add_subdirectory(Transforms) add_subdirectory(ExecutionEngine) add_subdirectory(Runtime) -gc_add_mlir_library(GcGpuCompiler GpuCompiler.cpp LINK_LIBS PUBLIC GcInterface - GcGpuPasses) +gc_add_mlir_library( + GcGpuCompiler + GpuCompiler.cpp + LINK_LIBS + PUBLIC + GcInterface + GcGpuPasses + GcJitEngine) get_property(GC_MLIR_LIBS GLOBAL PROPERTY GC_MLIR_LIBS) get_property(GC_PASS_LIBS GLOBAL PROPERTY GC_PASS_LIBS) From b8319ee1ad61f75611e90657307c4fc6a7d1ca87 Mon Sep 17 00:00:00 2001 From: Andrey Pavlenko Date: Thu, 29 Oct 2026 19:04:13 +0000 Subject: [PATCH 2/2] Fixed silent build.sh exit on LLVM CI-cache hit --- scripts/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index 9f429dbb..5eaf5fbe 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -226,7 +226,9 @@ build_gc() { mkdir -p "$GC_BUILD_DIR" local lit_path="$LLVM_BUILD_DIR/bin/llvm-lit" - [ -f "$lit_path" ] || lit_path=$(which lit) + # -s, not -f: the CI cache truncates unused bin/ files to 0 bytes. + [ -s "$lit_path" ] || lit_path="$LLVM_INSTALL_DIR/bin/llvm-lit" + [ -s "$lit_path" ] || lit_path=$(which lit || true) [ -z "$LLVM_HASH" ] && LLVM_HASH=$(get_llvm_hash "$MLIR_DIR/../../..") GC_HASH=$(repo_hash . "$MLIR_DIR" "$lit_path" $LLVM_HASH $GC_BUILD_TYPE $GC_DYLINK $GC_CMAKE_ARGS) [ "$(get_gc_hash "$GC_INSTALL_DIR")" = "$GC_HASH" ] && echo "GC build is up-to-date" && return 0