From d62a48e8adf6e7d54c51ecafb6c28c8a1019dbf1 Mon Sep 17 00:00:00 2001 From: Francis ANDRE Date: Wed, 26 Sep 2018 00:45:49 +0200 Subject: [PATCH] Fix compiler's args in debug mode --- build.gradle | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 3c3f29512..cf0c562ba 100644 --- a/build.gradle +++ b/build.gradle @@ -670,12 +670,12 @@ subprojects { cppCompiler.args "-stdlib=libc++" if (buildType == buildTypes.debug) { - cCompiler.args '-O0 -g -gdwarf-2' - cppCompiler.args '-O0 -g -gdwarf-2' + cCompiler.args ('-O0', '-g', '-gdwarf-2') + cppCompiler.args ('-O0', '-g', '-gdwarf-2') } else if (buildType == buildTypes.release) { - cCompiler.args '-O' - cppCompiler.args '-O' + cCompiler.args '-Os' + cppCompiler.args '-O2' } linker.args "-stdlib=libc++"