|
1 | 1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
2 | 2 | From: Samuel Maddock < [email protected]> |
3 | 3 | Date: Wed, 8 Oct 2025 10:50:03 -0400 |
4 | | -Subject: fix: js2c including mac sdk headers twice |
| 4 | +Subject: fix: redefined macos sdk header symbols |
5 | 5 |
|
6 | 6 | https://chromium-review.googlesource.com/c/chromium/src/+/6950738 |
7 | 7 |
|
8 | 8 | Chromium has set the minimum MacOS SDK version to 26. With this |
9 | 9 | change, it seems to introduce an incompatibility when compiling |
10 | | -using clang modules. Disabling them seems to resolve the issue. |
| 10 | +using clang modules. Disabling them resolves the issue. |
11 | 11 |
|
12 | 12 | diff --git a/unofficial.gni b/unofficial.gni |
13 | | -index a64d2e4ac475abc049fff7ea62ec76de565a747d..61aeac679a90832a1d9f559a4eb880362bce038d 100644 |
| 13 | +index a64d2e4ac475abc049fff7ea62ec76de565a747d..ab456452d102088005fc4bfcb394d2de5ec44889 100644 |
14 | 14 | --- a/unofficial.gni |
15 | 15 | +++ b/unofficial.gni |
16 | | -@@ -350,6 +350,12 @@ template("node_gn_build") { |
| 16 | +@@ -195,6 +195,10 @@ template("node_gn_build") { |
| 17 | + "CoreFoundation.framework", |
| 18 | + "Security.framework", |
| 19 | + ] |
| 20 | ++ |
| 21 | ++ # Fix for MacOSX26 SDK headers included twice due to usage of clang |
| 22 | ++ # modules. Included once as a C header and again as C++. |
| 23 | ++ use_libcxx_modules = false |
| 24 | + } |
| 25 | + if (is_posix) { |
| 26 | + configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] |
| 27 | +@@ -350,6 +354,12 @@ template("node_gn_build") { |
17 | 28 | include_dirs = [ "src", "tools" ] |
18 | 29 | configs += [ "//build/config/compiler:no_exit_time_destructors" ] |
19 | 30 |
|
|
0 commit comments