mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-26 17:01:34 +02:00
20 lines
703 B
Diff
20 lines
703 B
Diff
diff --git a/v8/BUILD.gn b/v8/BUILD.gn
|
|
index 3c03942..870b1e6 100644
|
|
--- ./v8/BUILD.gn
|
|
+++ ./v8/BUILD.gn
|
|
@@ -577,6 +577,14 @@ config("toolchain") {
|
|
defines += [ "V8_ANDROID_LOG_STDOUT" ]
|
|
}
|
|
|
|
+ if (!is_win && !is_clang) {
|
|
+ # GCC 6+ can optimize away pointer comparisons to null. This is
|
|
+ # problematic as V8 encodes Values through tagged pointers and comparisons
|
|
+ # with 0 are actually necessary in many cases. As a temporary Workaround
|
|
+ # we disable this optimization. See: https://crbug.com/v8/3782
|
|
+ cflags += [ "-fno-delete-null-pointer-checks" ]
|
|
+ }
|
|
+
|
|
# TODO(jochen): Support v8_enable_prof on Windows.
|
|
# TODO(jochen): Add support for compiling with simulators.
|
|
|