You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Use cmake for building
* CMakeLists.txt modified to support full standalone build
* added support for ARCH=native builds
* added PowerPC flags
* added ARMv8 flags
* check for x86 AES-NI at compile time
Copy file name to clipboardexpand all lines: README.md
+12-7
Original file line number
Diff line number
Diff line change
@@ -20,23 +20,28 @@ Design description and analysis is available in [design.md](doc/design.md).
20
20
21
21
## Build
22
22
23
-
RandomX is written in C++11 and builds a static library with a C API provided by header file [randomx.h](src/randomx.h). Minimal API usage example is provided in [api-example1.c](src/tests/api-example1.c). The reference code includes a `benchmark`executable for testing.
23
+
RandomX is written in C++11 and builds a static library with a C API provided by header file [randomx.h](src/randomx.h). Minimal API usage example is provided in [api-example1.c](src/tests/api-example1.c). The reference code includes a `randomx-benchmark`and `randomx-tests` executables for testing.
24
24
25
25
### Linux
26
26
27
-
Build dependencies: `make` and `gcc` (minimum version 4.8, but version 7+ is recommended).
27
+
Build dependencies: `cmake` (minimum 2.8.7) and `gcc` (minimum version 4.8, but version 7+ is recommended).
28
28
29
-
Build using the provided makefile.
29
+
To build optimized binaries for your machine, run:
30
+
```
31
+
git clone https://github.com/tevador/RandomX.git
32
+
cd RandomX
33
+
mkdir build && cd build
34
+
cmake -DARCH=native ..
35
+
make
36
+
```
30
37
31
38
### Windows
32
39
33
-
Build dependencies: Visual Studio 2017.
34
-
35
-
A solution file is provided.
40
+
On Windows, it is possible to build using MinGW (same procedure as on Linux) or using Visual Studio 2017 (solution file is provided).
36
41
37
42
### Precompiled binaries
38
43
39
-
Precompiled `benchmark` binaries are available on the [Releases page](https://github.com/tevador/RandomX/releases).
44
+
Precompiled `randomx-benchmark` binaries are available on the [Releases page](https://github.com/tevador/RandomX/releases).
0 commit comments