From c7869e7eb494ab98b9434254f414f633e30e2a5c Mon Sep 17 00:00:00 2001 From: tobrun Date: Tue, 22 Jan 2019 16:34:05 +0100 Subject: [android] - ignore unused arguments for all configurations --- platform/android/MapboxGLAndroidSDK/build.gradle | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/platform/android/MapboxGLAndroidSDK/build.gradle b/platform/android/MapboxGLAndroidSDK/build.gradle index e38d61923f..e6f4cab847 100644 --- a/platform/android/MapboxGLAndroidSDK/build.gradle +++ b/platform/android/MapboxGLAndroidSDK/build.gradle @@ -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")) { -- cgit v1.2.1