diff --git a/skiko/buildSrc/src/main/kotlin/tasks/configuration/NativeTasksConfiguration.kt b/skiko/buildSrc/src/main/kotlin/tasks/configuration/NativeTasksConfiguration.kt index d84aa8353..43b250efc 100644 --- a/skiko/buildSrc/src/main/kotlin/tasks/configuration/NativeTasksConfiguration.kt +++ b/skiko/buildSrc/src/main/kotlin/tasks/configuration/NativeTasksConfiguration.kt @@ -117,7 +117,12 @@ fun SkikoProjectContext.compileNativeBridgesTask( OS.MacOS -> { flags.set(listOf( *buildType.clangFlags, - *skiaPreprocessorFlags(OS.MacOS, buildType) + *skiaPreprocessorFlags(OS.MacOS, buildType), + when(arch) { + Arch.Arm64 -> "-arch arm64" + Arch.X64 -> "-arch x86_64" + else -> error("Unexpected arch: $arch for $os") + } )) } OS.Linux -> {