Unverified Commit 1654444b authored by Oleksandr Karpovich's avatar Oleksandr Karpovich Committed by GitHub

Set -arch flag for clang++ to properly cross-compile for macOS (#1004)

parent 3bee7645
...@@ -117,7 +117,12 @@ fun SkikoProjectContext.compileNativeBridgesTask( ...@@ -117,7 +117,12 @@ fun SkikoProjectContext.compileNativeBridgesTask(
OS.MacOS -> { OS.MacOS -> {
flags.set(listOf( flags.set(listOf(
*buildType.clangFlags, *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 -> { OS.Linux -> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment