pulumi / ci-mgmt

Configuration for all things CI
Apache License 2.0
11 stars 4 forks source link

Add linker flags for stripping debug symbols from provider binary #1145

Closed flostadler closed 1 week ago

flostadler commented 1 week ago

Some of the providers binary, like aws, reached critical sizes. pulumi-resource-aws is now ~930MB big (see).

By stripping debug symbols we save ~300MB for AWS. Panics and stack traces still contain all the necessary information.

In detail this adds the -s and -w linker flags which strip the symbol table, debug information and DWARF symbol table.

Relates to https://github.com/pulumi/pulumi-aws/issues/4383