linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / v8 / libv8-5.4.232.patch
blob16c227cfe38d548b75a58567a819c199eef492e4
1 From c9f42d1314c6026efcfcc01824f4e2fdfd05ebcf Mon Sep 17 00:00:00 2001
2 From: Ben Sklaroff <bsklaroff@gmail.com>
3 Date: Sat, 23 Jul 2016 18:16:55 -0400
4 Subject: [PATCH] libv8-5.4.232
6 ---
7 Makefile | 5 +----
8 gypfiles/all.gyp | 32 --------------------------------
9 gypfiles/standalone.gypi | 5 ++++-
10 3 files changed, 5 insertions(+), 37 deletions(-)
12 diff --git a/Makefile b/Makefile
13 index 5ea5c58..d1b2d73 100644
14 --- a/Makefile
15 +++ b/Makefile
16 @@ -261,11 +261,8 @@ GYPFILES = third_party/icu/icu.gypi third_party/icu/icu.gyp \
17 gypfiles/shim_headers.gypi gypfiles/features.gypi \
18 gypfiles/standalone.gypi \
19 gypfiles/toolchain.gypi gypfiles/all.gyp gypfiles/mac/asan.gyp \
20 - test/cctest/cctest.gyp test/fuzzer/fuzzer.gyp \
21 - test/unittests/unittests.gyp src/v8.gyp \
22 - tools/parser-shell.gyp testing/gmock.gyp testing/gtest.gyp \
23 buildtools/third_party/libc++abi/libc++abi.gyp \
24 - buildtools/third_party/libc++/libc++.gyp samples/samples.gyp \
25 + buildtools/third_party/libc++/libc++.gyp \
26 src/third_party/vtune/v8vtune.gyp src/d8.gyp
28 # If vtunejit=on, the v8vtune.gyp will be appended.
29 diff --git a/gypfiles/all.gyp b/gypfiles/all.gyp
30 index ff1bea4..96820a0 100644
31 --- a/gypfiles/all.gyp
32 +++ b/gypfiles/all.gyp
33 @@ -16,38 +16,6 @@
34 '../tools/parser-shell.gyp:parser-shell',
36 }],
37 - # These items don't compile for Android on Mac.
38 - ['host_os!="mac" or OS!="android"', {
39 - 'dependencies': [
40 - '../samples/samples.gyp:*',
41 - '../test/cctest/cctest.gyp:*',
42 - '../test/fuzzer/fuzzer.gyp:*',
43 - '../test/unittests/unittests.gyp:*',
44 - ],
45 - }],
46 - ['test_isolation_mode != "noop"', {
47 - 'dependencies': [
48 - '../test/bot_default.gyp:*',
49 - '../test/benchmarks/benchmarks.gyp:*',
50 - '../test/default.gyp:*',
51 - '../test/ignition.gyp:*',
52 - '../test/intl/intl.gyp:*',
53 - '../test/message/message.gyp:*',
54 - '../test/mjsunit/mjsunit.gyp:*',
55 - '../test/mozilla/mozilla.gyp:*',
56 - '../test/optimize_for_size.gyp:*',
57 - '../test/perf.gyp:*',
58 - '../test/preparser/preparser.gyp:*',
59 - '../test/simdjs/simdjs.gyp:*',
60 - '../test/test262/test262.gyp:*',
61 - '../test/webkit/webkit.gyp:*',
62 - '../tools/check-static-initializers.gyp:*',
63 - '../tools/gcmole/run_gcmole.gyp:*',
64 - '../tools/jsfunfuzz/jsfunfuzz.gyp:*',
65 - '../tools/run-deopt-fuzzer.gyp:*',
66 - '../tools/run-valgrind.gyp:*',
67 - ],
68 - }],
72 diff --git a/gypfiles/standalone.gypi b/gypfiles/standalone.gypi
73 index 89f06a0..a43976d 100644
74 --- a/gypfiles/standalone.gypi
75 +++ b/gypfiles/standalone.gypi
76 @@ -506,6 +506,9 @@
77 }], # fastbuild!=0
79 'target_conditions': [
80 + ['_type=="static_library"', {
81 + 'standalone_static_library': 1,
82 + }],
83 ['v8_code == 0', {
84 'defines!': [
85 'DEBUG',
86 @@ -770,7 +773,7 @@
87 [ 'visibility=="hidden" and v8_enable_backtrace==0', {
88 'cflags': [ '-fvisibility=hidden' ],
89 }],
90 - [ 'component=="shared_library"', {
91 + [ 'component=="shared_library" or component=="static_library" and (v8_target_arch=="x64" or v8_target_arch=="arm64" or v8_target_arch=="arm")', {
92 'cflags': [ '-fPIC', ],
93 }],
94 [ 'clang==0 and coverage==1', {
95 --
96 2.9.0