Skip to content

Commit

Permalink
Fix warnings about invalid toolsets
Browse files Browse the repository at this point in the history
Add our custom android_ndk/emsdk toolsets to "valid_tools" for the gmake2 action. These errors were confusing even for people familiar with our build system.

Diffs=
973ff2276 Fix warnings about invalid toolsets (#7300)

Co-authored-by: Chris Dalton <[email protected]>
  • Loading branch information
csmartdalton and csmartdalton committed May 22, 2024
1 parent 7867298 commit 526edf1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
265c009852e86492deb69277ad18aa2c394c93e5
973ff2276f928634e964fafb2d74f11a1cb9d29c
7 changes: 6 additions & 1 deletion build/rive_build_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@ if _OPTIONS['os'] == 'android' then
return android_ndk_tools[tool]
end

valid_cc_tools = premake.action._list['gmake2'].valid_tools['cc']
valid_cc_tools[#valid_cc_tools + 1] = 'android_ndk'
toolset('android_ndk')

buildoptions({
Expand Down Expand Up @@ -444,6 +446,9 @@ if _OPTIONS['arch'] == 'wasm' or _OPTIONS['arch'] == 'js' then
end

system('emscripten')

valid_cc_tools = premake.action._list['gmake2'].valid_tools['cc']
valid_cc_tools[#valid_cc_tools + 1] = 'emsdk'
toolset('emsdk')

linkoptions({ '-sALLOW_MEMORY_GROWTH=1', '-sDYNAMIC_EXECUTION=0' })
Expand All @@ -461,7 +466,7 @@ if _OPTIONS['arch'] == 'wasm' or _OPTIONS['arch'] == 'js' then
filter({ 'options:arch=wasm', 'options:no-wasm-simd' })
do
linkoptions({ '-s MIN_SAFARI_VERSION=120000' })
end
end

filter({ 'options:arch=wasm', 'options:config=debug' })
do
Expand Down

0 comments on commit 526edf1

Please sign in to comment.