mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-11 21:20:39 +02:00
build: ci/doc win64-cross build via nix
This commit is contained in:
@@ -160,14 +160,23 @@ proceeding with a cross-compile. Under the depends directory, create a
|
||||
subdirectory named `SDKs`. Then, place the extracted SDK under this new directory.
|
||||
For more information, see [SDK Extraction](../contrib/macdeploy/README.md#sdk-extraction).
|
||||
|
||||
#### For Windows cross compilation using MSVCRT
|
||||
#### For Windows cross compilation
|
||||
|
||||
Using MSVCRT:
|
||||
|
||||
apt install g++-mingw-w64-x86-64-posix
|
||||
|
||||
#### For Windows cross compilation using UCRT
|
||||
Using UCRT:
|
||||
|
||||
apt install g++-mingw-w64-ucrt64
|
||||
|
||||
Some Ubuntu or Debian versions may not offer a working package. In this case,
|
||||
you may install `nix-bin` and use the Nix shell from the repository root:
|
||||
|
||||
apt install nix-bin
|
||||
NIX_BUILD_SHELL=bash HOST=x86_64-w64-mingw32 nix-shell contrib/devtools/shell-win64-cross.nix # MSVCRT
|
||||
NIX_BUILD_SHELL=bash HOST=x86_64-w64-mingw32ucrt nix-shell contrib/devtools/shell-win64-cross.nix # UCRT
|
||||
|
||||
#### For Linux cross compilation
|
||||
|
||||
Please note that package availability might depend on the arch+OS you are building on.
|
||||
|
||||
Reference in New Issue
Block a user