Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

You can use -flto in cflags for emsdk bazel #148

Open
@logankaser

Description

I came across this comment while reading your bazel code:
# TODO(PiotrSikora): Add -flto to copts/linkopts when fixed in emsdk.
I just wanted to let you guys know that -flto can be used in clfags just fine.
It does not work for linkopts because emsdk bazel ships a pre-packaged sysroot that does not include lto'd system libs,
but you can still get significant improvements from running lto on your binary.
For a project at my job, it reduced the WASM binary size by half.

Anyway, just wanted to let you all know, cheers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /