Skip to content

Commit

Permalink
Fix some paths for toolchain / build
Browse files Browse the repository at this point in the history
  • Loading branch information
hyc committed Jul 5, 2022
1 parent b54d5ae commit 8ea6c33
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions contrib/depends/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### Usage

To build dependencies for the current arch+OS:
To build dependencies for the current arch+OS, from this working directory:

```bash
make
Expand All @@ -20,10 +20,12 @@ make HOST=x86_64-w64-mingw32 -j4

A toolchain will be generated that's suitable for plugging into Monero's
cmake. In the above example, a dir named x86_64-w64-mingw32 will be
created. To use it for Monero:
created. To use it for Monero, from the top of the Monero source tree:

```bash
cmake -DCMAKE_TOOLCHAIN=`pwd`/contrib/depends/x86_64-w64-mingw32
mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=$PWD/../contrib/depends/x86_64-w64-mingw32/share/toolchain.cmake ..
```

Common `host-platform-triplets` for cross compilation are:
Expand Down

0 comments on commit 8ea6c33

Please sign in to comment.