fix stripping, update readme for proper sizing
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ebbcdb271b
commit
fda5589f20
|
@ -12,8 +12,10 @@ This is my first serious zig effort, so please issue a PR if the code isn't
|
||||||
|
|
||||||
This is designed to be built statically using the `aws_c_*` libraries, so
|
This is designed to be built statically using the `aws_c_*` libraries, so
|
||||||
we inherit a lot of the goodness of the work going on there. Current
|
we inherit a lot of the goodness of the work going on there. Current
|
||||||
executable size is 10.3M, about half of which is due to the SSL library.
|
executable size is 9.7M, about half of which is due to the SSL library.
|
||||||
This is for x86_linux (which is all that's tested at the moment).
|
Running strip on the executable after compilation (it seems zig strip
|
||||||
|
only goes so far), reduces this to 4.3M. This is for x86_linux,
|
||||||
|
(which is all that's tested at the moment).
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ pub fn build(b: *Builder) !void {
|
||||||
exe.linkage = .static;
|
exe.linkage = .static;
|
||||||
|
|
||||||
const is_strip = b.option(bool, "strip", "strip exe") orelse true;
|
const is_strip = b.option(bool, "strip", "strip exe") orelse true;
|
||||||
exe.strip = !is_strip;
|
exe.strip = is_strip;
|
||||||
|
|
||||||
const run_cmd = exe.run();
|
const run_cmd = exe.run();
|
||||||
run_cmd.step.dependOn(b.getInstallStep());
|
run_cmd.step.dependOn(b.getInstallStep());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user