Skip to content

Commit c544ece

Browse files
committed
[patches] add buildtools.patch to link Node with libc++
1 parent 8d40a59 commit c544ece

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

patch/patch.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ patches = [
1111
'name': 'icu',
1212
'path': 'third_party/icu/',
1313
},
14+
{
15+
'name': 'buildtools',
16+
'path': 'buildtools',
17+
},
1418
]

patch/patches/buildtools.patch

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
diff --git a/third_party/libc++/BUILD.gn b/third_party/libc++/BUILD.gn
2+
index 6cd5a55..8ea6885 100644
3+
--- third_party/libc++/BUILD.gn
4+
+++ third_party/libc++/BUILD.gn
5+
@@ -19,7 +19,11 @@ config("config") {
6+
}
7+
8+
if (libcpp_is_static) {
9+
- link_target_type = "source_set"
10+
+ if (is_linux) {
11+
+ link_target_type = "static_library"
12+
+ } else {
13+
+ link_target_type = "source_set"
14+
+ }
15+
} else {
16+
link_target_type = "shared_library"
17+
}

0 commit comments

Comments
 (0)