Hi all. Anyone up for an sqldelight question? I ha...
# squarelibraries
s
Hi all. Anyone up for an sqldelight question? I have a multiplatform project that includes a
linux_x64
target (the main targets are android and iOS, but I maintain a linux target to run native tests without a mac). The project builds fine if i comment out the linux target. When I include it I get build errors:
Copy code
Required org.jetbrains.kotlin.native.target 'linux_x64' but no value provided.
- Variant 'mingw-api' capability com.squareup.sqldelight:native-driver:1.4.0:
- Incompatible attribute:
- Required org.jetbrains.kotlin.native.target 'linux_x64' and found incompatible value 'mingw_x64'
I can't see in the documentation, is there maybe no support for linux native in SqlDelight?
From https://github.com/cashapp/sqldelight/blob/master/runtime/build.gradle
Copy code
targets {
    targetFromPreset(presets.jvm, 'jvm')
    targetFromPreset(presets.iosX64, 'iosX64')
    targetFromPreset(presets.iosArm32, 'iosArm32')
    targetFromPreset(presets.iosArm64, 'iosArm64')
    targetFromPreset(presets.tvosX64, 'tvosX64')
    targetFromPreset(presets.tvosArm64, 'tvosArm64')
    targetFromPreset(presets.watchosX86, 'watchosX86')
    targetFromPreset(presets.watchosArm32, 'watchosArm32')
    targetFromPreset(presets.watchosArm64, 'watchosArm64')
    targetFromPreset(presets.macosX64, 'macosX64')
    targetFromPreset(presets.mingwX64, 'mingw')
  }

  configure([targets.iosX64, targets.iosArm32, targets.iosArm64, targets.tvosX64, targets.tvosArm64, targets.watchosX86, targets.watchosArm32, targets.watchosArm64, targets.macosX64, targets.mingw]) {
    compilations.main.source(sourceSets.nativeMain)
    compilations.test.source(sourceSets.nativeTest)
  }
...so it looks like it's not available for linux