From a8080697dcd3f4f6309c83865bbef262948517f1 Mon Sep 17 00:00:00 2001 From: Lucy Date: Mon, 7 Jul 2025 00:48:23 -0400 Subject: [PATCH] the default linux `PreCompile.sh` now copies .so files instead of moving them (#91990) ## About The Pull Request by changing the `mv` commands in the `PreCompile.sh` preset for rust-g and dreamluau to `cp -f`, we can avoid having to re-link the so files every compile if nothing has changed, meaning that this step is practically instant if the rust-g and compiler versions were the same as last time. tested downstream and this does not seem to cause any issues in production ## Why It's Good For The Game Improves compile times. ## Changelog no player-facing changes --- tools/tgs_scripts/PreCompile.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/tgs_scripts/PreCompile.sh b/tools/tgs_scripts/PreCompile.sh index 5bbbe0fe7e8..3810620a95c 100755 --- a/tools/tgs_scripts/PreCompile.sh +++ b/tools/tgs_scripts/PreCompile.sh @@ -29,7 +29,7 @@ fi echo "Deploying rust-g..." git checkout "$RUST_G_VERSION" env PKG_CONFIG_ALLOW_CROSS=1 ~/.cargo/bin/cargo build --ignore-rust-version --release --target=i686-unknown-linux-gnu -mv target/i686-unknown-linux-gnu/release/librust_g.so "$1/librust_g.so" +cp -f target/i686-unknown-linux-gnu/release/librust_g.so "$1/librust_g.so" cd .. # @@ -50,7 +50,7 @@ fi echo "Deploying Dreamlaua..." git checkout "$DREAMLUAU_VERSION" env PKG_CONFIG_ALLOW_CROSS=1 ~/.cargo/bin/cargo build --ignore-rust-version --release --target=i686-unknown-linux-gnu -mv target/i686-unknown-linux-gnu/release/libdreamluau.so "$1/libdreamluau.so" +cp -f target/i686-unknown-linux-gnu/release/libdreamluau.so "$1/libdreamluau.so" cd .. # compile tgui