perf(bindings): Enable LTO (#5740)

This commit is contained in:
Donny/강동윤 2022-09-04 23:34:41 +09:00 committed by GitHub
parent c00f1a4d52
commit 49e0c71cba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,7 @@ env:
APP_NAME: swc
MACOSX_DEPLOYMENT_TARGET: "10.13"
CARGO_INCREMENTAL: 0
CARGO_PROFILE_RELEASE_LTO: "fat"
CI: "1"
DISABLE_PLUGIN_E2E_TESTS: true
@ -33,6 +34,7 @@ jobs:
strip -x *.node
- host: windows-latest
build: |
export CARGO_PROFILE_RELEASE_LTO=false
yarn build
cargo build --manifest-path ./bindings/swc_cli/Cargo.toml --release --features plugin
cp ./bindings/target/release/swc .