rust: remove sed -i

This commit is contained in:
Dylan Araps 2021-07-03 21:24:51 +00:00
parent f1e98bd306
commit afbd121d2e
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

View File

@ -14,14 +14,22 @@ patch -p1 < libressl.patch
}
# Set shared linking as the default.
sed -i 's/crt_static_default = true/crt_static_default = false/' \
for f in \
compiler/rustc_target/src/spec/linux_musl_base.rs \
vendor/rustc-ap-rustc_target/src/spec/linux_musl_base.rs
do
sed 's/\(crt_static_default = \)true/\1false/' "$f" > _
mv -f _ "$f"
done
# Ignore checksums of files modified above.
sed -i 's/\("files":{\)[^}]*/\1/' \
for f in \
vendor/openssl-sys/.cargo-checksum.json \
vendor/rustc-ap-rustc_target/.cargo-checksum.json
do
sed 's/\("files":{\)[^}]*/\1/' "$f" > _
mv -f _ "$f"
done
cat > config.toml <<EOF
[llvm]