Fix compiler's args in debug mode

This commit is contained in:
Francis ANDRE 2018-09-26 00:45:49 +02:00
parent 9b70d8477a
commit d62a48e8ad

View File

@ -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++"