You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# By default `LEGACY_RUNTIME` is disabled and `stringToNewUTF8` is not available.
13951
13949
self.cflags += ['-Wno-deprecated']
13952
13950
self.do_runf('other/test_legacy_runtime.c',
13953
-
'`allocate` is a library symbol and not included by default; add it to your library.js __deps or to DEFAULT_LIBRARY_FUNCS_TO_INCLUDE on the command line',
13951
+
'`stringToNewUTF8` is a library symbol and not included by default; add it to your library.js __deps or to DEFAULT_LIBRARY_FUNCS_TO_INCLUDE on the command line',
13954
13952
assert_returncode=NON_ZERO)
13955
13953
13956
13954
# When we enable `LEGACY_RUNTIME`, `allocate` should be available.
13957
-
self.set_setting('LEGACY_RUNTIME', 1)
13958
-
self.do_runf('other/test_legacy_runtime.c')
13955
+
self.do_runf('other/test_legacy_runtime.c', 'hello from js', cflags=['-sLEGACY_RUNTIME'])
13959
13956
13960
13957
# Adding it to EXPORTED_RUNTIME_METHODS should also make it available.
0 commit comments