Skip to content

Commit

Permalink
Add missing deps_info for glfwGetMonitors (#14972)
Browse files Browse the repository at this point in the history
Fixes #14965
  • Loading branch information
kripken committed Aug 31, 2021
1 parent 30863fb commit 872b959
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_other.py
Original file line number Diff line number Diff line change
Expand Up @@ -10605,6 +10605,8 @@ def test_deps_info(self):
cmd.append('-sUSE_WEBGPU')
if function.startswith('__cxa_'):
cmd.append('-fexceptions')
if function.startswith('glfwGetMonitors'):
cmd.append('-sUSE_GLFW=3')
# In WebAssemblyLowerEmscriptenEHSjLj pass in the LLVM backend, function
# calls that exist in the same function with setjmp are converted to some
# code sequence that includes emscripten_longjmp. emscripten_longjmp is
Expand Down
1 change: 1 addition & 0 deletions tools/deps_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
'glfwGetProcAddress': ['malloc'],
'glfwInit': ['malloc', 'free'],
'glfwSleep': ['sleep'],
'glfwGetMonitors': ['malloc'],
'gmtime': ['malloc'],
'gmtime_r': ['malloc'],
'localtime': ['_get_tzname', '_get_daylight', '_get_timezone', 'malloc'],
Expand Down

0 comments on commit 872b959

Please sign in to comment.