From 263416f3fe96fc2a593bfeb2daa70ff6a6125976 Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Thu, 25 Mar 2021 22:46:55 +0100 Subject: [PATCH] [android] Removed duplicated c++17 flag and disabled unused sections Signed-off-by: Alexander Borsuk --- android/build.gradle | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 8df7904384..dc6788c230 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -188,8 +188,9 @@ android { cmake { version '3.8.0+' - cppFlags '-fexceptions', '-frtti', '-std=c++17' - cFlags '-ffunction-sections', '-fdata-sections', + cppFlags '-fexceptions', '-frtti' + // There is no sense to enable sections without gcc's --gc-sections flag. + cFlags '-fno-function-sections', '-fno-data-sections', '-Wno-extern-c-compat' arguments '-DANDROID_TOOLCHAIN=clang', '-DANDROID_STL=c++_static', "-DOS=$osName", '-DSKIP_TESTS=ON', "-DUSE_PCH=$pchFlag"