[android] - ignore unused arguments for all configurations

This commit is contained in:
tobrun
2019-01-22 16:34:05 +01:00
committed by Tobrun
parent 2639d3b31d
commit c7869e7eb4

View File

@@ -81,12 +81,11 @@ android {
// Enable ccache if the user has installed it.
if (ccache?.trim()) {
arguments "-DANDROID_CCACHE=" + ccache
// ccache splits up the compile command until multiple invocations and uses -E
// with one of them, and clang doesn't like unused arguments in that case.
cFlags "-Qunused-arguments"
cppFlags "-Qunused-arguments"
}
cFlags "-Qunused-arguments"
cppFlags "-Qunused-arguments"
targets "mapbox-gl"
if (defaultPublishConfig.equalsIgnoreCase("debug")) {