https://kotlinlang.org logo
#kotlin-native
Title
# kotlin-native
t

Tristan

08/31/2022, 3:20 AM
Hello, can someone provide me an example of how to configure a project that compiles for multiple architecture? I can’t make sense of the documentation 😅 Inside of
/common
I have
nativeMain
, so
/common/nativeMain
and I’d like this folder to be use for macosX64 and linuxX64. I tried something like this, but it does seem to be it (I am getting KotlinSourceSet not found)
Copy code
val nativeMain by creating {
            dependsOn(commonMain)
            dependencies {
                implementation(Deps.Ktor.clientCurl)
            }
        }
        val nativeTest by creating {
            dependsOn(commonTest)
        }
        val macosX64 by getting {
            dependsOn(nativeMain)
        }
sooo it’s
macosX64Main
… I am sorry for the noise.
2 Views