[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:
committed by
Vasily Levchenko
parent
552344e17e
commit
70866092d2
@@ -89,6 +89,9 @@ model {
|
||||
cppCompiler.withArguments { args ->
|
||||
args.remove "/usr/include"
|
||||
}
|
||||
cCompiler.withArguments { args ->
|
||||
args.remove "/usr/include"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user