Skip to content

consider enabling flto for release builds on Linux #48

Description

@ee7

Currently, it's only enabled for macOS:

when defined(macosx):
switch("cpu", targetArch)
switch("passc", "-flto -target " & targetStr)
switch("passl", "-flto -w -target " & targetStr &
"-Wl,-object_path_lto,lto.o")
elif defined(linux):
if staticLink:
switch("passc", "-static")
switch("passl", "-static")
else:
discard

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions