Commit c568c0b
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 c568c0b
1 file changed
+3
-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 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| |||
0 commit comments