Skip to content

Commit

Permalink
chore: strip was stabilized
Browse files Browse the repository at this point in the history
  • Loading branch information
eycorsican committed Apr 18, 2022
1 parent 806fc61 commit 5a6c4ce
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ jobs:
run: |
export CFG_COMMIT_HASH=`git log --pretty=format:'%h' -n 1`
export CFG_COMMIT_DATE=`git log --format="%ci" -n 1`
export RUSTFLAGS="-Z strip=symbols"
./misc/build_cross.sh ${{ matrix.target }}
- name: rename and compress artifacts
Expand Down Expand Up @@ -121,7 +120,6 @@ jobs:
run: |
export CFG_COMMIT_HASH=`git log --pretty=format:'%h' -n 1`
export CFG_COMMIT_DATE=`git log --format="%ci" -n 1`
export RUSTFLAGS="-Z strip=symbols"
cargo build --release --target ${{ matrix.target }} -p leaf-bin
- name: rename and compress artifacts
Expand Down Expand Up @@ -156,7 +154,6 @@ jobs:
#
# - name: build
# run: |
# export RUSTFLAGS="-Z strip=symbols"
# make ios
#
# - name: zip artifacts
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ jobs:
run: |
export CFG_COMMIT_HASH=`git log --pretty=format:'%h' -n 1`
export CFG_COMMIT_DATE=`git log --format="%ci" -n 1`
export RUSTFLAGS="-Z strip=symbols"
./misc/build_cross.sh ${{ matrix.target }}
- name: rename and compress artifacts
Expand Down Expand Up @@ -97,7 +96,6 @@ jobs:
run: |
export CFG_COMMIT_HASH=`git log --pretty=format:'%h' -n 1`
export CFG_COMMIT_DATE=`git log --format="%ci" -n 1`
export RUSTFLAGS="-Z strip=symbols"
cargo build --release --target ${{ matrix.target }} -p leaf-bin
- name: rename and compress artifacts
Expand Down Expand Up @@ -132,7 +130,6 @@ jobs:
#
# - name: build
# run: |
# export RUSTFLAGS="-Z strip=symbols"
# make ios
#
# - name: zip artifacts
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ opt-level = 3
lto = true
# codegen-units = 1
panic = "abort"
strip = "symbols"

[profile.dev]
opt-level = 0
Expand Down
1 change: 0 additions & 1 deletion Cross.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
passthrough = [
"CFG_COMMIT_HASH",
"CFG_COMMIT_DATE",
"RUSTFLAGS",
]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ios-dev:
cbindgen --config leaf-ffi/cbindgen.toml leaf-ffi/src/lib.rs > target/universal/debug/leaf.h

ios-opt:
RUSTFLAGS="-Z strip=symbols" cargo lipo --release --targets aarch64-apple-ios --manifest-path leaf-ffi/Cargo.toml --no-default-features --features "default-openssl"
cargo lipo --release --targets aarch64-apple-ios --manifest-path leaf-ffi/Cargo.toml --no-default-features --features "default-openssl"
cbindgen --config leaf-ffi/cbindgen.toml leaf-ffi/src/lib.rs > target/universal/release/leaf.h

lib:
Expand Down

0 comments on commit 5a6c4ce

Please sign in to comment.