-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from avcribl/feat-bump-18-20-4
upgraded node version to 18.20.4
- Loading branch information
Showing
10 changed files
with
136 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules/ | ||
build/ | ||
cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
disable usage of <sys/random.h> | ||
|
||
--- deps/cares/config/linux/ares_config.h | ||
+++ deps/cares/config/linux/ares_config.h | ||
@@ -116,7 +116,9 @@ | ||
#define HAVE_GETNAMEINFO 1 | ||
|
||
/* Define to 1 if you have `getrandom` */ | ||
+#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 25 | ||
#define HAVE_GETRANDOM 1 | ||
+#endif | ||
|
||
/* Define to 1 if you have `getservbyport_r` */ | ||
#define HAVE_GETSERVBYPORT_R 1 | ||
@@ -329,7 +331,9 @@ | ||
#define HAVE_SYS_PARAM_H 1 | ||
|
||
/* Define to 1 if you have the <sys/random.h> header file. */ | ||
+#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 25 | ||
#define HAVE_SYS_RANDOM_H 1 | ||
+#endif | ||
|
||
/* Define to 1 if you have the <sys/select.h> header file. */ | ||
#define HAVE_SYS_SELECT_H 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- src/node.cc | ||
+++ src/node.cc | ||
@@ -304,6 +304,14 @@ MaybeLocal<Value> StartExecution(Environment* env, StartExecutionCallback cb) { | ||
return env->RunSnapshotDeserializeMain(); | ||
} | ||
|
||
+ // To allow people to extend Node in different ways, this hook allows | ||
+ // one to drop a file lib/_third_party_main.js into the build | ||
+ // directory which will be executed instead of Node's normal loading. | ||
+ if (env->builtin_loader()->Exists("_third_party_main")) { | ||
+ return StartExecution(env, "internal/main/run_third_party_main"); | ||
+ } | ||
+ | ||
+ | ||
if (env->worker_context() != nullptr) { | ||
return StartExecution(env, "internal/main/worker_thread"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
disable building of cctest as it (a) it fails to build due to align_alloc and (b) it is just a waste of time | ||
|
||
--- node.gyp | ||
+++ node.gyp | ||
@@ -1217,7 +1217,7 @@ | ||
}, # fuzz_env | ||
{ | ||
'target_name': 'cctest', | ||
- 'type': 'executable', | ||
+ 'type': 'none', | ||
|
||
'dependencies': [ | ||
'<(node_lib_target_name)', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- /dev/null | ||
+++ lib/internal/main/run_third_party_main.js | ||
@@ -0,0 +1,14 @@ | ||
+'use strict'; | ||
+ | ||
+const { | ||
+ prepareMainThreadExecution, | ||
+ markBootstrapComplete | ||
+} = require('internal/process/pre_execution'); | ||
+ | ||
+prepareMainThreadExecution(); | ||
+markBootstrapComplete(); | ||
+ | ||
+// Legacy _third_party_main.js support | ||
+process.nextTick(() => { | ||
+ require('_third_party_main'); | ||
+}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
expose option for configuring pointer compression | ||
|
||
--- vcbuild.bat | ||
+++ vcbuild.bat | ||
@@ -74,6 +74,7 @@ set no_shared_roheap= | ||
set doc= | ||
set extra_msbuild_args= | ||
set exit_code=0 | ||
+set v8_ptr_compress= | ||
|
||
:next-arg | ||
if "%1"=="" goto args-done | ||
@@ -152,6 +153,7 @@ if /i "%1"=="cctest" set cctest=1&goto arg-ok | ||
if /i "%1"=="openssl-no-asm" set openssl_no_asm=1&goto arg-ok | ||
if /i "%1"=="no-shared-roheap" set no_shared_roheap=1&goto arg-ok | ||
if /i "%1"=="doc" set doc=1&goto arg-ok | ||
+if /i "%1"=="v8_ptr_compress" set v8_ptr_compress=1&goto arg-ok | ||
if /i "%1"=="binlog" set extra_msbuild_args=/binaryLogger:%config%\node.binlog&goto arg-ok | ||
|
||
echo Error: invalid command line option `%1`. | ||
@@ -210,6 +212,7 @@ if defined debug_nghttp2 set configure_flags=%configure_flags% --debug-nghttp | ||
if defined openssl_no_asm set configure_flags=%configure_flags% --openssl-no-asm | ||
if defined no_shared_roheap set configure_flags=%configure_flags% --disable-shared-readonly-heap | ||
if defined DEBUG_HELPER set configure_flags=%configure_flags% --verbose | ||
+if defined v8_ptr_compress set configure_flags=%configure_flags% --experimental-enable-pointer-compression | ||
if "%target_arch%"=="x86" if "%PROCESSOR_ARCHITECTURE%"=="AMD64" set configure_flags=%configure_flags% --no-cross-compiling | ||
|
||
if not exist "%~dp0deps\icu" goto no-depsicu |