| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0aaed24 commit 91b20c5
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -573,6 +573,28 @@ | |||
| 573 | 573 | dest='shared_sqlite_libpath', | |
| 574 | 574 | help='a directory to search for the shared sqlite DLL') | |
| 575 | 575 | ||
| 576 | + shared_optgroup.add_argument('--shared-temporal_capi', | ||
| 577 | + action='store_true', | ||
| 578 | + dest='shared_temporal_capi', | ||
| 579 | + default=None, | ||
| 580 | + help='link to a shared temporal_capi DLL instead of static linking') | ||
| 581 | + | ||
| 582 | + shared_optgroup.add_argument('--shared-temporal_capi-includes', | ||
| 583 | + action='store', | ||
| 584 | + dest='shared_temporal_capi_includes', | ||
| 585 | + help='directory containing temporal_capi header files') | ||
| 586 | + | ||
| 587 | + shared_optgroup.add_argument('--shared-temporal_capi-libname', | ||
| 588 | + action='store', | ||
| 589 | + dest='shared_temporal_capi_libname', | ||
| 590 | + default='temporal_capi', | ||
| 591 | + help='alternative lib name to link to [default: %(default)s]') | ||
| 592 | + | ||
| 593 | + shared_optgroup.add_argument('--shared-temporal_capi-libpath', | ||
| 594 | + action='store', | ||
| 595 | + dest='shared_temporal_capi_libpath', | ||
| 596 | + help='a directory to search for the shared temporal_capi DLL') | ||
| 597 | + | ||
| 576 | 598 | shared_optgroup.add_argument('--shared-zstd', | |
| 577 | 599 | action='store_true', | |
| 578 | 600 | dest='shared_zstd', | |
@@ -1009,6 +1031,13 @@ | |||
| 1009 | 1031 | default=None, | |
| 1010 | 1032 | help='Enable the built-in snapshot compression in V8.') | |
| 1011 | 1033 | ||
| 1034 | + | ||
| 1035 | + parser.add_argument('--v8-enable-temporal-support', | ||
| 1036 | + action='store_true', | ||
| 1037 | + dest='v8_enable_temporal_support', | ||
| 1038 | + default=None, | ||
| 1039 | + help='Enable Temporal support in V8.') | ||
| 1040 | + | ||
| 1012 | 1041 | parser.add_argument('--node-builtin-modules-path', | |
| 1013 | 1042 | action='store', | |
| 1014 | 1043 | dest='node_builtin_modules_path', | |
@@ -1802,6 +1831,7 @@ def configure_v8(o, configs): | |||
| 1802 | 1831 | o['variables']['v8_enable_external_code_space'] = 1 if options.enable_pointer_compression else 0 | |
| 1803 | 1832 | o['variables']['v8_enable_31bit_smis_on_64bit_arch'] = 1 if options.enable_pointer_compression else 0 | |
| 1804 | 1833 | o['variables']['v8_enable_extensible_ro_snapshot'] = 0 | |
| 1834 | + o['variables']['v8_enable_temporal_support'] = 1 if options.v8_enable_temporal_support else 0 | ||
| 1805 | 1835 | o['variables']['v8_trace_maps'] = 1 if options.trace_maps else 0 | |
| 1806 | 1836 | o['variables']['node_use_v8_platform'] = b(not options.without_v8_platform) | |
| 1807 | 1837 | o['variables']['node_use_bundled_v8'] = b(not options.without_bundled_v8) | |
@@ -2357,6 +2387,7 @@ def make_bin_override(): | |||
| 2357 | 2387 | configure_library('nghttp3', output, pkgname='libnghttp3') | |
| 2358 | 2388 | configure_library('ngtcp2', output, pkgname='libngtcp2') | |
| 2359 | 2389 | configure_sqlite(output); | |
| 2390 | + configure_library('temporal_capi', output) | ||
| 2360 | 2391 | configure_library('uvwasi', output) | |
| 2361 | 2392 | configure_library('zstd', output, pkgname='libzstd') | |
| 2362 | 2393 | configure_v8(output, configurations) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,16 +1,20 @@ | |||
| 1 | 1 | { | |
| 2 | 2 | pkgs ? import ./tools/nix/pkgs.nix { }, | |
| 3 | 3 | loadJSBuiltinsDynamically ? true, # Load `lib/**.js` from disk instead of embedding | |
| 4 | + withTemporal ? false, | ||
| 4 | 5 | ncu-path ? null, # Provide this if you want to use a local version of NCU | |
| 5 | 6 | icu ? pkgs.icu, | |
| 6 | - sharedLibDeps ? import ./tools/nix/sharedLibDeps.nix { inherit pkgs; }, | ||
| 7 | + sharedLibDeps ? import ./tools/nix/sharedLibDeps.nix { inherit pkgs withTemporal; }, | ||
| 7 | 8 | ccache ? pkgs.ccache, | |
| 8 | 9 | ninja ? pkgs.ninja, | |
| 9 | 10 | devTools ? import ./tools/nix/devTools.nix { inherit pkgs ncu-path; }, | |
| 10 | 11 | benchmarkTools ? import ./tools/nix/benchmarkTools.nix { inherit pkgs; }, | |
| 11 | 12 | extraConfigFlags ? [ | |
| 12 | 13 | "--without-npm" | |
| 13 | 14 | "--debug-node" | |
| 15 | + ] | ||
| 16 | + ++ pkgs.lib.optionals withTemporal [ | ||
| 17 | + "--v8-enable-temporal-support" | ||
| 14 | 18 | ], | |
| 15 | 19 | }: | |
| 16 | 20 | ||
@@ -22,7 +26,7 @@ in | |||
| 22 | 26 | pkgs.mkShell { | |
| 23 | 27 | inherit (pkgs.nodejs_latest) nativeBuildInputs; | |
| 24 | 28 | ||
| 25 | - buildInputs = builtins.attrValues sharedLibDeps ++ pkgs.lib.optionals useSharedICU [ icu ]; | ||
| 29 | + buildInputs = builtins.attrValues sharedLibDeps ++ pkgs.lib.optional useSharedICU icu; | ||
| 26 | 30 | ||
| 27 | 31 | packages = [ | |
| 28 | 32 | ccache | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,6 @@ | |||
| 1 | 1 | { | |
| 2 | 2 | pkgs ? import ./pkgs.nix { }, | |
| 3 | + withTemporal ? false, | ||
| 3 | 4 | }: | |
| 4 | 5 | { | |
| 5 | 6 | inherit (pkgs) | |
@@ -36,3 +37,6 @@ | |||
| 36 | 37 | ]; | |
| 37 | 38 | }); | |
| 38 | 39 | } | |
| 40 | + // (pkgs.lib.optionalAttrs withTemporal { | ||
| 41 | + inherit (pkgs) temporal_capi; | ||
| 42 | + }) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -295,6 +295,10 @@ | |||
| 295 | 295 | # add a dependency on the ICU library. | |
| 296 | 296 | 'v8_enable_i18n_support%': 1, | |
| 297 | 297 | ||
| 298 | + # Enable Temporal API. Enabling this feature will | ||
| 299 | + # add a dependency on the temporal_rs library. | ||
| 300 | + 'v8_enable_temporal_support%': 0, | ||
| 301 | + | ||
| 298 | 302 | # Lite mode disables a number of performance optimizations to reduce memory | |
| 299 | 303 | # at the cost of performance. | |
| 300 | 304 | # Sets --DV8_LITE_MODE. | |
@@ -410,6 +414,9 @@ | |||
| 410 | 414 | ['v8_enable_i18n_support==1', { | |
| 411 | 415 | 'defines': ['V8_INTL_SUPPORT',], | |
| 412 | 416 | }], | |
| 417 | + ['v8_enable_temporal_support==1', { | ||
| 418 | + 'defines': ['V8_TEMPORAL_SUPPORT',], | ||
| 419 | + }], | ||
| 413 | 420 | # Refs: https://github.com/nodejs/node/pull/23801 | |
| 414 | 421 | # ['v8_enable_handle_zapping==1', { | |
| 415 | 422 | # 'defines': ['ENABLE_HANDLE_ZAPPING',], | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,6 +27,11 @@ | |||
| 27 | 27 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "torque_files =.*?v8_enable_i18n_support.*?torque_files \\+= ")', | |
| 28 | 28 | ], | |
| 29 | 29 | }], | |
| 30 | + ['v8_enable_temporal_support==1', { | ||
| 31 | + 'torque_files': [ | ||
| 32 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "torque_files =.*?v8_enable_temporal_support.*?torque_files \\+= ")', | ||
| 33 | + ], | ||
| 34 | + }], | ||
| 30 | 35 | ['v8_enable_webassembly==1', { | |
| 31 | 36 | 'torque_files': [ | |
| 32 | 37 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "torque_files =.*?v8_enable_webassembly.*?torque_files \\+= ")', | |
@@ -660,6 +665,11 @@ | |||
| 660 | 665 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_snapshot_compression.*?sources \\+= ")', | |
| 661 | 666 | ], | |
| 662 | 667 | }], | |
| 668 | + ['v8_enable_temporal_support==1', { | ||
| 669 | + 'sources': [ | ||
| 670 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_temporal_support.*?sources \\+= ")', | ||
| 671 | + ], | ||
| 672 | + }], | ||
| 663 | 673 | ['v8_enable_sparkplug==1', { | |
| 664 | 674 | 'sources': [ | |
| 665 | 675 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_sparkplug.*?sources \\+= ")', | |
@@ -1117,6 +1127,11 @@ | |||
| 1117 | 1127 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_snapshot_compression.*?sources \\+= ")', | |
| 1118 | 1128 | ], | |
| 1119 | 1129 | }], | |
| 1130 | + ['v8_enable_temporal_support==1', { | ||
| 1131 | + 'sources': [ | ||
| 1132 | + '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_temporal_support.*?sources \\+= ")', | ||
| 1133 | + ], | ||
| 1134 | + }], | ||
| 1120 | 1135 | ['v8_enable_sparkplug==1', { | |
| 1121 | 1136 | 'sources': [ | |
| 1122 | 1137 | '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_sparkplug.*?sources \\+= ")', | |
| Back | FazBrowse Home | New Git URL |
0 commit comments