Use caches for linux_x64 compile-only benchmarks

This commit is contained in:
Sergey Bogolepov
2020-12-17 17:00:21 +07:00
committed by Stanislav Erokhin
parent d09b0b7042
commit 62e7b67170
@@ -133,7 +133,7 @@ fun getCompileOnlyBenchmarksOpts(project: Project, defaultCompilerOpts: List<Str
val dist = project.file(project.findProperty("kotlin.native.home") ?: "dist")
val useCache = !project.hasProperty("disableCompilerCaches")
val cacheOption = "-Xcache-directory=$dist/klib/cache/${HostManager.host.name}-gSTATIC"
.takeIf { useCache && PlatformInfo.isMac() } // TODO: remove target condition when we have cache support for other targets.
.takeIf { useCache && !PlatformInfo.isWindows() } // TODO: remove target condition when we have cache support for other targets.
return (project.findProperty("nativeBuildType") as String?)?.let {
if (it.equals("RELEASE", true))
listOf("-opt")