Skip to content

Commit

Permalink
Preserve debug information in skiko.wasm for BuildType.Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
eymar committed Sep 3, 2024
1 parent c479fc9 commit 122e08f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,10 @@ fun skiaPreprocessorFlags(os: OS, buildType: SkiaBuildType): Array<String> {
"-DSK_BUILD_FOR_LINUX",
"-D_GLIBCXX_USE_CXX11_ABI=0"
)
OS.Wasm -> listOf(
"-DSKIKO_WASM"
)
OS.Wasm -> buildList {
add("-DSKIKO_WASM")
if (buildType == SkiaBuildType.DEBUG) add("-g")
}
OS.Android -> listOf(
"-DSK_BUILD_FOR_ANDROID"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ fun SkikoProjectContext.createWasmLinkTasks(): LinkWasmTasks = with(this.project
)
)
}

if (buildType == SkiaBuildType.DEBUG) add("-g")
})

doLast {
Expand Down

0 comments on commit 122e08f

Please sign in to comment.