We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3dfd33e commit 674eacdCopy full SHA for 674eacd
player-sample/build.gradle.kts
@@ -42,8 +42,16 @@ kotlin {
42
val nativeTarget = when {
43
hostOs == "Mac OS X" && isArm64 -> macosArm64("macosArm64")
44
hostOs == "Mac OS X" && !isArm64 -> macosX64("macosX64")
45
- hostOs == "Linux" && isArm64 -> linuxArm64("linuxX64")
46
- hostOs == "Linux" && !isArm64 -> linuxX64("linuxArm64")
+ hostOs == "Linux" && isArm64 -> linuxArm64("linuxX64").apply {
+ binaries.executable {
47
+ linkerOpts = mutableListOf("-lasound")
48
+ }
49
50
+ hostOs == "Linux" && !isArm64 -> linuxX64("linuxArm64").apply {
51
52
53
54
55
isMingwX64 -> mingwX64("native")
56
else -> throw GradleException("Host OS is not supported in Kotlin/Native.")
57
}
0 commit comments