-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathrelease.sh
More file actions
32 lines (30 loc) · 943 Bytes
/
release.sh
File metadata and controls
32 lines (30 loc) · 943 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
cargo fmt
rm -rf output
export RUSTFLAGS="
-Z mir-opt-level=2
-Z dylib-lto=yes
-Z inline-mir=yes
-Z fewer-names=yes
-Z share-generics=yes
-Z remap-cwd-prefix=.
-Z function-sections=yes
-Z dep-info-omit-d-target
-Z flatten-format-args=yes
-Z saturating-float-casts=yes
-Z mir-enable-passes=+Inline
-Z precise-enum-drop-elaboration=yes
-C default-linker-libraries
-C relro-level=none
-C code-model=small
-C relocation-model=pie
-C symbol-mangling-version=v0
-C llvm-args=-fp-contract=off
-C llvm-args=-enable-misched
-C llvm-args=-enable-post-misched
-C llvm-args=-enable-dfa-jump-thread
-C link-arg=-Wl,--no-rosegment
-C link-arg=-Wl,--sort-section=alignment
-C link-args=-Wl,-O3,--gc-sections,--as-needed
-C link-args=-Wl,-x,-z,noexecstack,--pack-dyn-relocs=android+relr,-s,--strip-all,--relax
"
python3 ./make.py build --release --nightly