[build][gradle][4.4] missed hack over gradle bug of forcebly injection of '/usr/include' in clang toolchain for c compiler

This commit is contained in:
Vasily Levchenko
2017-12-22 13:42:59 +03:00
committed by Vasily Levchenko
parent 552344e17e
commit 70866092d2
2 changed files with 13 additions and 0 deletions
+3
View File
@@ -89,6 +89,9 @@ model {
cppCompiler.withArguments { args ->
args.remove "/usr/include"
}
cCompiler.withArguments { args ->
args.remove "/usr/include"
}
}
}
}
+10
View File
@@ -41,6 +41,16 @@ model {
}
}
/* HACK over gradle 4.4, it adds /usr/include, that affects our --sysroot flag */
toolChains {
clang(Clang) {
eachPlatform {
cCompiler.withArguments { args ->
args.remove "/usr/include"
}
}
}
}
}
dependencies {