mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
src: use simdutf for converting externalized builtins to UTF-16
Remove the dependency on ICU for this part, as well as the hacky way of converting embedder main sources to UTF-8 via V8 APIs. Allow `UnionBytes` to own the memory its pointing to in order to simplify the code on the `BuiltinLoader` side. PR-URL: https://github.com/nodejs/node/pull/46119 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
parent
757c104147
commit
21fb98e2bf
10 changed files with 106 additions and 105 deletions
|
@ -2024,11 +2024,7 @@ output['variables']['node_builtin_shareable_builtins'] = []
|
|||
for builtin in shareable_builtins:
|
||||
builtin_id = 'node_shared_builtin_' + builtin.replace('/', '_') + '_path'
|
||||
if getattr(options, builtin_id):
|
||||
if options.with_intl == 'none':
|
||||
option_name = '--shared-builtin-' + builtin + '-path'
|
||||
error(option_name + ' is incompatible with --with-intl=none' )
|
||||
else:
|
||||
output['defines'] += [builtin_id.upper() + '=' + getattr(options, builtin_id)]
|
||||
output['defines'] += [builtin_id.upper() + '=' + getattr(options, builtin_id)]
|
||||
else:
|
||||
output['variables']['node_builtin_shareable_builtins'] += [shareable_builtins[builtin]]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue