Commit 2ebfb5d
committed
fix(build): set target_arch to fix NSS build on Apple Silicon
GYP expects the `target_arch` environment variable to determine the correct
architecture when building NSS. On Apple Silicon, if this is unset or misconfigured,
NSS can be built for `x86_64`, leading to linker failures due to architecture mismatch.
This patch sets `target_arch` based on `uname -m` when building on macOS,
ensuring correct architecture selection and avoiding these build errors.1 parent e1b42aa commit 2ebfb5d
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| 45 | + | |
| 46 | + | |
42 | 47 | | |
43 | 48 | | |
44 | 49 | | |
| |||
0 commit comments