Skip to content
This repository was archived by the owner on Feb 9, 2024. It is now read-only.

Commit a107236

Browse files
0xcf843ecf802c722f434d560xcf843ecf802c722f434d56
andauthored
Add linux support (#71)
Co-authored-by: 0xcf843ecf802c722f434d56 <nathanwoodformal@gmail.com>
1 parent f963ec4 commit a107236

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ kotlin {
4444
iosArm32 { nativeTargets.add(this) }
4545
macosX64 { nativeTargets.add(this) }
4646
mingwX64 { nativeTargets.add(this) }
47+
linuxX64 { nativeTargets.add(this) }
4748

4849
nativeTargets.forEach {
4950
val main by it.compilations.getting {
@@ -80,7 +81,7 @@ kotlin {
8081
}
8182
}
8283

83-
listOf("iosX64", "iosArm64", "iosArm32", "macosX64", "mingwX64").forEach {
84+
listOf("iosX64", "iosArm64", "iosArm32", "macosX64", "mingwX64", "linuxX64").forEach {
8485
getByName("${it}Main") {
8586
dependsOn(nativeMain)
8687
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package com.autodesk.coroutineworker
2+
3+
internal actual inline fun <R> autoreleasepool(block: () -> R): R = block()

0 commit comments

Comments
 (0)