From 0169b078b2047bdcd6e2257f473382a0b0a9fbe5 Mon Sep 17 00:00:00 2001 From: Jimmy Bourassa Date: Wed, 1 Jan 2025 21:42:40 -0500 Subject: [PATCH] Add stdckint.h to fix Windows + Ruby 3.4 builds --- setup-ruby-and-rust/action.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup-ruby-and-rust/action.yml b/setup-ruby-and-rust/action.yml index b9afbaa..0106e2d 100644 --- a/setup-ruby-and-rust/action.yml +++ b/setup-ruby-and-rust/action.yml @@ -349,8 +349,13 @@ runs: exit 1 fi + # Add stdckdint.h from LLVM 18 to prevent Ruby 3.4's header from erroring + extra_includes=$msys_root/opt/rb-sys/include + mkdir -p $msys_root/opt/rb-sys/include + cp 'C:\Program Files\LLVM\lib\clang\18\include\stdckdint.h' $extra_includes + libclang_path="$msys_root/opt/llvm-15/bin" - bindgen_extra_clang_args="--target=${{ steps.derive-toolchain.outputs.toolchain }} --sysroot=$msys_root" + bindgen_extra_clang_args="--target=${{ steps.derive-toolchain.outputs.toolchain }} --sysroot=$msys_root -I$extra_includes" echo "::info::Listing files in $libclang_path" ls -la "$libclang_path"