Commit 5267573
committed
Merge #453: [node] Fix: Allow compilation for all target os/arch
2f36579 [node] Fix: Allow compilation for all target os/arch (志宇)
Pull request description:
Previously, if the target os/arch had no match, `download_filename` method would not exist, leading to compilation error.
Now, if the target os/arch has no match, and a download is required, we panic instead. This change allows the user can set `BITCOIND_EXE` to skip the download step (without a compile error on OSes where the binary is not hosted on `bitcoincore.org`).
### Rationale
Bitcoin Core can be compiled for other OSes such as BSD and Android. It's just that these binaries are not hosted on [bitcoincore.org](bitcoincore.org). A compile error based on whether the binaries are hosted on that domain does not make sense.
### Testing
I haven't tested this on OSX, Linux or Windows. I was hoping the CLI can cover some of these before I get my laptop replaced.
ACKs for top commit:
jamillambert:
ACK 2f36579
tcharding:
ACK 2f36579
Tree-SHA512: 430a06156f0a9da2ed34b323f90dc2f6f88720065d4bedfba4bb123df5c066b1d017d2c507231b2c2b818ac0de8c203b47a170cf0bb35a62618c6279effccb611 file changed
+24
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | | - | |
30 | 33 | | |
31 | | - | |
32 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | | - | |
35 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
36 | 41 | | |
37 | | - | |
38 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
39 | 45 | | |
40 | | - | |
41 | | - | |
| 46 | + | |
| 47 | + | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
| |||
72 | 78 | | |
73 | 79 | | |
74 | 80 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
| |||
90 | 93 | | |
91 | 94 | | |
92 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
93 | 100 | | |
94 | 101 | | |
95 | 102 | | |
| |||
0 commit comments