[build][gradle-4.4] (cpp, c) gradle plugins for native software injects -I/usr/include/x86_64-linux-gnu to compiler (#1189)
This commit is contained in:
committed by
Nikolay Igotti
parent
a1f0775806
commit
38069d47ea
@@ -88,9 +88,13 @@ model {
|
||||
eachPlatform {
|
||||
cppCompiler.withArguments { args ->
|
||||
args.remove "/usr/include"
|
||||
if (isLinux())
|
||||
args.remove "/usr/include/x86_64-linux-gnu"
|
||||
}
|
||||
cCompiler.withArguments { args ->
|
||||
args.remove "/usr/include"
|
||||
if (isLinux())
|
||||
args.remove "/usr/include/x86_64-linux-gnu"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,6 +47,8 @@ model {
|
||||
eachPlatform {
|
||||
cCompiler.withArguments { args ->
|
||||
args.remove "/usr/include"
|
||||
if (isLinux())
|
||||
args.remove "/usr/include/x86_64-linux-gnu"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,6 +46,8 @@ model {
|
||||
eachPlatform {
|
||||
cppCompiler.withArguments { args ->
|
||||
args.remove "/usr/include"
|
||||
if (isLinux())
|
||||
args.remove "/usr/include/x86_64-linux-gnu"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,6 +40,8 @@ model {
|
||||
eachPlatform {
|
||||
cppCompiler.withArguments { args ->
|
||||
args.remove "/usr/include"
|
||||
if (isLinux())
|
||||
args.remove "/usr/include/x86_64-linux-gnu"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user