Unverified Commit dbc6bdbd authored by Oleksandr Karpovich's avatar Oleksandr Karpovich Committed by GitHub

Build skiko.wasm with -s SUPPORT_LONGJMP=wasm (#1002)

parent 6d73ad7f
...@@ -98,7 +98,7 @@ fun skiaPreprocessorFlags(os: OS, buildType: SkiaBuildType): Array<String> { ...@@ -98,7 +98,7 @@ fun skiaPreprocessorFlags(os: OS, buildType: SkiaBuildType): Array<String> {
) )
OS.Wasm -> mutableListOf<String>().apply { OS.Wasm -> mutableListOf<String>().apply {
add("-DSKIKO_WASM") add("-DSKIKO_WASM")
// add("-sSUPPORT_LONGJMP=wasm") // TODO(o.karpovich): enable when skia is built with this flag (CMP-6628) add("-sSUPPORT_LONGJMP=wasm")
} }
OS.Android -> listOf( OS.Android -> listOf(
"-DSK_BUILD_FOR_ANDROID" "-DSK_BUILD_FOR_ANDROID"
......
...@@ -118,7 +118,7 @@ fun SkikoProjectContext.createWasmLinkTasks(): LinkWasmTasks = with(this.project ...@@ -118,7 +118,7 @@ fun SkikoProjectContext.createWasmLinkTasks(): LinkWasmTasks = with(this.project
"-O2" "-O2"
) )
) )
// addAll(listOf("-s", "SUPPORT_LONGJMP=wasm")) // TODO(o.karpovich): enable when skia is built with this flag (CMP-6628) addAll(listOf("-s", "SUPPORT_LONGJMP=wasm"))
if (outputES6) { if (outputES6) {
addAll( addAll(
listOf( listOf(
......
...@@ -2,7 +2,7 @@ kotlin.code.style=official ...@@ -2,7 +2,7 @@ kotlin.code.style=official
deploy.version=0.0.0 deploy.version=0.0.0
dependencies.skia=m126-6bfb13368b dependencies.skia=m126-6fd3120c1b
# you can override general skia dependencies by passing platform-specific property: # you can override general skia dependencies by passing platform-specific property:
# dependencies.skia.android-arm64 # dependencies.skia.android-arm64
......
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