Commit 4d8834f
build: add rust target for macOS cross compiles
When we build the macOS pkg, we build Node.js twice (on arm64):
- Once for arm64 (native)
- Once for x64, using a combination of Rosetta 2 and compiler flags
before combining both into a universal binary.
For the x64 case, pass target flag to `rustc` so that the binary is
built for the correct target architecture.
Signed-off-by: Richard Lau <richard.lau@ibm.com>
PR-URL: #63015
Reviewed-By: Stewart X Addison <sxa@redhat.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>1 parent dae2219 commit 4d8834fCopy full SHA for 4d8834f
2 files changed
+13-4Lines changed: 13 additions & 4 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- deps/crates
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1812 | 1812 | |
1813 | 1813 | |
1814 | 1814 | |
| 1815 | + |
| 1816 | + |
| 1817 | + |
| 1818 | + |
1815 | 1819 | |
1816 | 1820 | |
1817 | 1821 | |
|
Collapse file
+9-4Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
11 | 11 | |
12 | 12 | |
13 | 13 | |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
14 | 19 | |
15 | 20 | |
16 | 21 | |
17 | 22 | |
18 | 23 | |
19 | | - |
| 24 | + |
20 | 25 | |
21 | 26 | |
22 | 27 | |
| ||
25 | 30 | |
26 | 31 | |
27 | 32 | |
28 | | - |
| 33 | + |
29 | 34 | |
30 | 35 | |
31 | 36 | |
32 | 37 | |
33 | 38 | |
34 | | - |
| 39 | + |
35 | 40 | |
36 | 41 | |
37 | 42 | |
| ||
62 | 67 | |
63 | 68 | |
64 | 69 | |
65 | | - |
| 70 | + |
66 | 71 | |
67 | 72 | |
68 | 73 | |
|
0 commit comments