Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] - ignore unused arguments for all configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
tobrun committed Jan 22, 2019
1 parent 2639d3b commit c7869e7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions platform/android/MapboxGLAndroidSDK/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand Down

0 comments on commit c7869e7

Please sign in to comment.