Patch libuv and nodejs for compiling with clang

This commit is contained in:
Wildan M 2026-09-11 01:58:09 +07:00
parent 6368f67e53
commit b7bb69be02
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79
3 changed files with 37 additions and 0 deletions

View File

@ -128,6 +128,17 @@ diff -ruwN source/src/unix/fs.c source-new/src/unix/fs.c
stat_fs->f_type = 0; /* f_type is not supported. */
#else
stat_fs->f_type = buf.f_type;
diff -ruwN source/src/unix/process.c source-new/src/unix/process.c
--- source/src/unix/process.c 2025-04-25 09:50:27.000000000 +0000
+++ source-new/src/unix/process.c 2026-09-10 14:04:01.547065156 +0000
@@ -22,6 +22,7 @@
#include "uv.h"
#include "internal.h"
+#include <grp.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
diff -ruwN source/src/unix/proctitle.c source-new/src/unix/proctitle.c
--- source/src/unix/proctitle.c 2025-04-25 16:50:27.000000000 +0700
+++ source-new/src/unix/proctitle.c 2025-10-10 11:18:29.025229760 +0700

View File

@ -26,7 +26,11 @@ dev-dependencies = [
script = """
DYNAMIC_INIT
export PYTHONDONTWRITEBYTECODE=1 COOKBOOK_NOSTRIP=true
if [[ "$REDOXER_USE_CLANG" != "1" && "$REDOXER_USE_CLANG" != "true" ]]; then
export CC_host="$CC_WRAPPER gcc" CXX_host="$CC_WRAPPER g++"
else
export CC_host="$CC_WRAPPER clang" CXX_host="$CC_WRAPPER clang++" LDFLAGS_host="-fuse-ld=lld"
fi
rsync -av "${COOKBOOK_SOURCE}/" ./

View File

@ -30,6 +30,28 @@ diff -ruwN source/configure.py source-new/configure.py
valid_arch = ('arm', 'arm64', 'ia32', 'mips', 'mipsel', 'mips64el', 'ppc',
'ppc64', 'x64', 'x86', 'x86_64', 's390x', 'riscv64', 'loong64')
valid_arm_float_abi = ('soft', 'softfp', 'hard')
diff -ruwN source/deps/simdjson/simdjson.h source-new/deps/simdjson/simdjson.h
--- source/deps/simdjson/simdjson.h 2024-04-10 12:46:12.000000000 +0000
+++ source-new/deps/simdjson/simdjson.h 2026-09-10 23:01:55.280881826 +0000
@@ -6257,15 +6257,15 @@
simdjson_inline void one_char(char c);
simdjson_inline void call_print_newline() {
- this->print_newline();
+ static_cast<formatter*>(this)->print_newline();
}
simdjson_inline void call_print_indents(size_t depth) {
- this->print_indents(depth);
+ static_cast<formatter*>(this)->print_indents(depth);
}
simdjson_inline void call_print_space() {
- this->print_space();
+ static_cast<formatter*>(this)->print_space();
}
protected:
diff -ruwN source/deps/v8/bazel/config/BUILD.bazel source-new/deps/v8/bazel/config/BUILD.bazel
--- source/deps/v8/bazel/config/BUILD.bazel 2024-04-10 19:46:12.000000000 +0700
+++ source-new/deps/v8/bazel/config/BUILD.bazel 2025-10-10 15:52:40.317126983 +0700