summaryrefslogtreecommitdiff
path: root/fix-headers-ldflags.patch
diff options
context:
space:
mode:
Diffstat (limited to 'fix-headers-ldflags.patch')
-rw-r--r--fix-headers-ldflags.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/fix-headers-ldflags.patch b/fix-headers-ldflags.patch
new file mode 100644
index 0000000..c98f034
--- /dev/null
+++ b/fix-headers-ldflags.patch
@@ -0,0 +1,38 @@
+From 93f423aff6a293ff5212c1d870963c87c7b7823c Mon Sep 17 00:00:00 2001
+From: misaka00251 <liuxin@iscas.ac.cn>
+Date: Mon, 29 Jan 2024 16:36:54 +0800
+Subject: [PATCH] Fix headers & ldflags
+
+---
+ build/config/compiler/BUILD.gn | 2 +-
+ v8/src/compiler/turboshaft/utils.h | 1 +
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
+index 6d05512ae3..b04747fd19 100644
+--- a/build/config/compiler/BUILD.gn
++++ b/build/config/compiler/BUILD.gn
+@@ -773,7 +773,7 @@ config("compiler") {
+ # toolchain has this flag.
+ # We only use one version of LLVM within a build so there's no need to
+ # upgrade debug info, which can be expensive since it runs the verifier.
+- ldflags += [ "-Wl,-mllvm,-disable-auto-upgrade-debug-info" ]
++ # ldflags += [ "-Wl,-mllvm,-disable-auto-upgrade-debug-info" ]
+ }
+ }
+
+diff --git a/v8/src/compiler/turboshaft/utils.h b/v8/src/compiler/turboshaft/utils.h
+index 232c7a6dbd..8b70a15a88 100644
+--- a/v8/src/compiler/turboshaft/utils.h
++++ b/v8/src/compiler/turboshaft/utils.h
+@@ -8,6 +8,7 @@
+ #include <iostream>
+ #include <tuple>
+
++#include <limits>
+ #include "src/base/logging.h"
+
+ namespace v8::internal::compiler::turboshaft {
+--
+2.39.3 (Apple Git-145)
+