File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ plugins {
4
4
}
5
5
6
6
kotlin {
7
- linuxX64()
7
+ val isArm64 = System .getProperty(" os.arch" ) == " aarch64"
8
+ val nativeTarget = if (isArm64) linuxArm64() else linuxX64()
8
9
9
10
sourceSets {
10
11
commonMain.dependencies {
Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ plugins {
4
4
}
5
5
6
6
kotlin {
7
- linuxX64()
7
+ val isArm64 = System .getProperty(" os.arch" ) == " aarch64"
8
+ val nativeTarget = if (isArm64) linuxArm64() else linuxX64()
8
9
9
10
sourceSets {
10
11
commonMain.dependencies {
Original file line number Diff line number Diff line change @@ -5,14 +5,12 @@ plugins {
5
5
6
6
// todo is it a right way to specify main entry point for linux64?
7
7
kotlin {
8
+ val isArm64 = System .getProperty(" os.arch" ) == " aarch64"
9
+ val nativeTarget = if (isArm64) linuxArm64() else linuxX64()
8
10
9
- listOf (
10
- linuxX64()
11
- ).forEach {
12
- it.binaries {
13
- executable {
14
- entryPoint = " com.github.trueangle.knative.lambda.runtime.sample.main"
15
- }
11
+ nativeTarget.binaries {
12
+ executable {
13
+ entryPoint = " com.github.trueangle.knative.lambda.runtime.sample.main"
16
14
}
17
15
}
18
16
You can’t perform that action at this time.
0 commit comments