summaryrefslogtreecommitdiff
path: root/lang/v8/files/patch-src_base_cpu.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lang/v8/files/patch-src_base_cpu.cc')
-rw-r--r--lang/v8/files/patch-src_base_cpu.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/lang/v8/files/patch-src_base_cpu.cc b/lang/v8/files/patch-src_base_cpu.cc
new file mode 100644
index 000000000000..65f51266f753
--- /dev/null
+++ b/lang/v8/files/patch-src_base_cpu.cc
@@ -0,0 +1,18 @@
+--- src/base/cpu.cc.orig 2021-04-22 15:00:28 UTC
++++ src/base/cpu.cc
+@@ -545,6 +545,7 @@ CPU::CPU()
+
+ #if V8_OS_LINUX
+
++#if V8_OS_LINUX
+ CPUInfo cpu_info;
+
+ // Extract implementor from the "CPU implementer" field.
+@@ -578,6 +579,7 @@ CPU::CPU()
+ }
+ delete[] part;
+ }
++#endif
+
+ // Extract architecture from the "CPU Architecture" field.
+ // The list is well-known, unlike the the output of