Skip to content

Commit cc0e724

Browse files
committed
Try undoing unwind tables
1 parent b937e61 commit cc0e724

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.cargo/config.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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"))']

0 commit comments

Comments
 (0)