From 3f868cc55d7a1388fe8315a6938b95c9da1fb68e Mon Sep 17 00:00:00 2001 From: Svyatoslav Scherbina Date: Fri, 11 Oct 2019 11:52:47 +0300 Subject: [PATCH] Use -Werror when compiling C++ sources (including runtime) --- .../src/main/groovy/org/jetbrains/kotlin/CompileToBitcode.groovy | 1 + 1 file changed, 1 insertion(+) diff --git a/build-tools/src/main/groovy/org/jetbrains/kotlin/CompileToBitcode.groovy b/build-tools/src/main/groovy/org/jetbrains/kotlin/CompileToBitcode.groovy index e8fd9833026..8191f27d4c0 100644 --- a/build-tools/src/main/groovy/org/jetbrains/kotlin/CompileToBitcode.groovy +++ b/build-tools/src/main/groovy/org/jetbrains/kotlin/CompileToBitcode.groovy @@ -119,6 +119,7 @@ class CompileCppToBitcode extends DefaultTask { workingDir objDir executable "clang++" args '-std=c++14' + args '-Werror' args '-O2' if (!targetingMinGW) { args '-fPIC'