build: use LTO for release builds and strip guestinit (#68)

* initrd: strip guestinit binary before adding it to initramfs

Signed-off-by: Ariadne Conill <[email protected]>

* build: use LTO for release profile artifacts

this allows us to save ~25-30% on binary sizes, at least in guestinit

Signed-off-by: Ariadne Conill <[email protected]>

* revert strip command usage, breaks arm

Signed-off-by: Ariadne Conill <[email protected]>

* build: use strip=symbols

Signed-off-by: Ariadne Conill <[email protected]>

---------

Signed-off-by: Ariadne Conill <[email protected]>
This commit is contained in:
Ariadne Conill authored and GitHub committed 2024-04-13 09:20:24 +00:00
1 parent 6d07112e3d
commit f8247f13e4
1 file changed
+4
+4
View File
@@ -116,3 +116,7 @@ features = ["tls"]
[workspace.dependencies.uuid]
version = "1.6.1"
features = ["v4"]
[profile.release]
lto = "fat"
strip = "symbols"