Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure Android uses LTO #2856

Open
louwers opened this issue Sep 19, 2024 · 0 comments
Open

Ensure Android uses LTO #2856

louwers opened this issue Sep 19, 2024 · 0 comments
Assignees
Labels
android build Related to build, configuration or CI/CD

Comments

@louwers
Copy link
Collaborator

louwers commented Sep 19, 2024

Since Gradle uses RelWithDebug instad of Release we are probably not using LTO on Android right now.

target_link_libraries(
mbgl-compiler-options
INTERFACE
$<$<CONFIG:Release>:-O2>
$<$<CONFIG:Release>:-Wl,--icf=all>
$<$<CONFIG:Release>:-flto>
$<$<CONFIG:Release>:-fuse-ld=gold>
)

@louwers louwers added build Related to build, configuration or CI/CD android labels Sep 19, 2024
@louwers louwers self-assigned this Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android build Related to build, configuration or CI/CD
Projects
Status: No status
Development

No branches or pull requests

1 participant