chore: Enable with_rive_scripting flag for wasm (#11329) 8e395d6bb0

Co-authored-by: Philip Chung <philterdesign@gmail.com>
This commit is contained in:
philter
2026-01-06 19:06:14 +00:00
parent 66c35233ff
commit fafd66788a
3 changed files with 31 additions and 18 deletions

View File

@@ -1 +1 @@
8f9dae9f361595302907e90ef18335b66c83d988
8e395d6bb04b096d0fcf308113c5458e7722e19c

View File

@@ -174,3 +174,8 @@ newoption({
trigger = 'with_rive_layout',
description = 'Compiles in layout features.',
})
newoption({
trigger = 'with_rive_docs',
description = 'Indicates building for use with the docs generator.',
})

View File

@@ -38,25 +38,33 @@ end
project('luau_compiler')
do
kind('StaticLib')
exceptionhandling('On')
includedirs({
luau .. '/Compiler/include',
luau .. '/Ast/include',
luau .. '/Common/include',
kind('None')
filter({
'options:with_rive_tools or options:with_rive_docs',
'options:not flutter_runtime or options:with_rive_docs'
})
files({
luau .. '/Compiler/src/**.cpp',
luau .. '/Ast/src/**.cpp',
luau .. '/Common/src/**.cpp',
})
defines({ 'RIVE_LUAU' })
optimize('Size')
filter({ 'options:with-asan' })
do
defines({ 'LUAU_ENABLE_ASAN' })
kind('StaticLib')
exceptionhandling('On')
includedirs({
luau .. '/Compiler/include',
luau .. '/Ast/include',
luau .. '/Common/include',
})
files({
luau .. '/Compiler/src/**.cpp',
luau .. '/Ast/src/**.cpp',
luau .. '/Common/src/**.cpp',
})
defines({ 'RIVE_LUAU' })
optimize('Size')
filter({ 'options:with-asan' })
do
defines({ 'LUAU_ENABLE_ASAN' })
end
end
end