Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions build/rive_build_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ newoption({
description = 'Embed wasm directly into the js, instead of side-loading it.',
})

newoption({
trigger = 'with_wasm_pthread',
description = 'Embed wasm directly into the js, instead of side-loading it.',
})

newoption({
trigger = 'no-lto',
description = 'Don\'t build with link time optimizations.',
Expand Down Expand Up @@ -808,6 +813,12 @@ if _OPTIONS['arch'] == 'wasm' or _OPTIONS['arch'] == 'js' then
linkoptions({ '-sSINGLE_FILE=1' })
end

filter('options:with_wasm_pthread')
do
buildoptions({ '-pthread' })
linkoptions({ '-pthread' })
end

filter('options:config=release')
do
buildoptions({ '-Oz' })
Expand Down
Loading