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

Add ccache env variable #2911

Open
adrian-cojocaru opened this issue Oct 8, 2024 · 0 comments
Open

Add ccache env variable #2911

adrian-cojocaru opened this issue Oct 8, 2024 · 0 comments
Labels
android build Related to build, configuration or CI/CD

Comments

@adrian-cojocaru
Copy link
Collaborator

Currently ccache is added to the build without any checks -DANDROID_CCACHE=ccache and is expected to be present in the environment (for render-test/benchmark targets).
MapLibreAndroid checks a list of hardcoded paths for it to be enabled:

                        if (file("/usr/bin/ccache").exists()) {
                            arguments "-DANDROID_CCACHE=/usr/bin/ccache"
                        } else if (file("/usr/local/bin/ccache").exists()) {
                            arguments "-DANDROID_CCACHE=/usr/local/bin/ccache"
                        }

An environmental variable can be useful to configure the path (in addition to the existing path list).

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
None yet
Development

No branches or pull requests

1 participant