[K/N][test] Fixup target toolchain path for ExecClang
This fixes failures caused by the 3aeca1956e.
See also MR-KT-12948
This commit is contained in:
committed by
Space Team
parent
0aa5170ba2
commit
a53c96e790
@@ -62,11 +62,7 @@ abstract class ExecClang @Inject constructor(
|
|||||||
if (listOf("clang", "clang++").contains(executable)) {
|
if (listOf("clang", "clang++").contains(executable)) {
|
||||||
// TODO: This is copied from `BitcodeCompiler`. Consider sharing the code instead.
|
// TODO: This is copied from `BitcodeCompiler`. Consider sharing the code instead.
|
||||||
val platform = platformManager.platform(target)
|
val platform = platformManager.platform(target)
|
||||||
return if (target.family.isAppleFamily) {
|
return "${platform.absoluteTargetToolchain}/bin/$executable"
|
||||||
"${platform.absoluteTargetToolchain}/usr/bin/$executable"
|
|
||||||
} else {
|
|
||||||
"${platform.absoluteTargetToolchain}/bin/$executable"
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
throw GradleException("unsupported clang executable: $executable")
|
throw GradleException("unsupported clang executable: $executable")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user