From cc768f22a20dd7c1604a6a666a95d4e32e2544fa Mon Sep 17 00:00:00 2001 From: Trevor Elliott Date: Mon, 30 Jan 2023 18:59:46 -0800 Subject: [PATCH] Debug the build step (#5664) Change the permissions on libwasmtime.a before copying it, to avoid errors stemming from new behavior in rustc-1.67. --- ci/build-tarballs.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ci/build-tarballs.sh b/ci/build-tarballs.sh index 491a6d94af..07030bcfdf 100755 --- a/ci/build-tarballs.sh +++ b/ci/build-tarballs.sh @@ -49,6 +49,8 @@ if [ "$platform" = "x86_64-windows" ]; then "$WIX/bin/light" -out dist/$bin_pkgname.msi target/wasmtime.wixobj -ext WixUtilExtension rm dist/$bin_pkgname.wixpdb elif [ "$platform" = "x86_64-mingw" ]; then + # FIXME: remove when https://github.com/rust-lang/rust/issues/107495 is fixed + chmod 0664 target/x86_64-pc-windows-gnu/release/libwasmtime.a cp target/x86_64-pc-windows-gnu/release/wasmtime.exe tmp/$bin_pkgname cp target/x86_64-pc-windows-gnu/release/{wasmtime.dll,libwasmtime.a,libwasmtime.dll.a} tmp/$api_pkgname/lib fmt=zip @@ -57,16 +59,24 @@ elif [ "$platform" = "x86_64-macos" ]; then # directive than the default one that comes out of the linker when typically # doing `cargo build`. For more info see #984 install_name_tool -id "@rpath/libwasmtime.dylib" target/release/libwasmtime.dylib + # FIXME: remove when https://github.com/rust-lang/rust/issues/107495 is fixed + sudo chmod 0664 target/release/libwasmtime.a cp target/release/wasmtime tmp/$bin_pkgname cp target/release/libwasmtime.{a,dylib} tmp/$api_pkgname/lib elif [ "$platform" = "aarch64-macos" ]; then install_name_tool -id "@rpath/libwasmtime.dylib" target/aarch64-apple-darwin/release/libwasmtime.dylib + # FIXME: remove when https://github.com/rust-lang/rust/issues/107495 is fixed + sudo chmod 0664 target/aarch64-apple-darwin/release/libwasmtime.a cp target/aarch64-apple-darwin/release/wasmtime tmp/$bin_pkgname cp target/aarch64-apple-darwin/release/libwasmtime.{a,dylib} tmp/$api_pkgname/lib elif [ "$target" = "" ]; then + # FIXME: remove when https://github.com/rust-lang/rust/issues/107495 is fixed + sudo chmod 0664 target/release/libwasmtime.a cp target/release/wasmtime tmp/$bin_pkgname cp target/release/libwasmtime.{a,so} tmp/$api_pkgname/lib else + # FIXME: remove when https://github.com/rust-lang/rust/issues/107495 is fixed + sudo chmod 0664 target/$target/release/libwasmtime.a cp target/$target/release/wasmtime tmp/$bin_pkgname cp target/$target/release/libwasmtime.{a,so} tmp/$api_pkgname/lib fi