Use caches for linux_x64 compile-only benchmarks
This commit is contained in:
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")
|
||||
|
||||
Reference in New Issue
Block a user