File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ rustflags = [
5555 # Set up the CRT: use ucrtbase.dll but statically link the VC runtime.
5656 " -C" , " link-args=/nodefaultlib onecore_apiset.lib ucrt.lib libvcruntime.lib libcmt.lib" ,
5757 # Enable CFG
58- " -Ccontrol-flow-guard"
58+ " -Ccontrol-flow-guard" ,
5959]
6060
6161[target .aarch64-apple-darwin ]
@@ -89,6 +89,9 @@ rustflags = [
8989 " -Ctarget-feature=+crt-static" ,
9090 # Use RELR relocation format, which is considerably smaller.
9191 " -Clink-arg=-Wl,-z,pack-relative-relocs" ,
92+ # Disable unwind tables to reduce binary size.
93+ # TODO: It would be nice to have this enabled for debug builds
94+ " -Cforce-unwind-tables=no" ,
9295]
9396
9497[target .'cfg(all(target_arch = "aarch64", target_env = "musl"))' ]
You can’t perform that action at this time.
0 commit comments