Skip to content

Commit 9293c61

Browse files
ilya-gSpace Team
authored andcommitted
[stdlib] Add os.arch as an input property to prevent build cache reuse across architectures
KTI-2623 KT-53258
1 parent e527b1e commit 9293c61

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

libraries/stdlib/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ kotlin {
127127

128128
val main by getting {
129129
compileTaskProvider.configure {
130+
// use os.arch as an input property of the compilation task
131+
// to avoid resuing compilation results from the build cache
132+
// produced on the other CPU architecture due to KT-53258
133+
inputs.property("os.arch", providers.systemProperty("os.arch"))
134+
130135
this as UsesKotlinJavaToolchain
131136
kotlinJavaToolchain.toolchain.use(getToolchainLauncherFor(JdkMajorVersion.JDK_11_0))
132137
compilerOptions {

0 commit comments

Comments
 (0)