Skip to content

Commit 333c288

Browse files
authored
Merge pull request #15 from LucasMLK/develop
update to 0.2.0
2 parents efd2c2f + c3aff00 commit 333c288

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Compile and copy the appropriate shared library for your platform:
6060
cd randomx
6161
mkdir build && cd build
6262
cmake .. -DCMAKE_BUILD_TYPE=Release -DARCH=native -DBUILD_SHARED_LIBS=ON
63-
make
63+
make -j4
6464
cp -i librandomx.so ../../src/main/resources/native/librandomx_linux_x86_64.so
6565
```
6666

@@ -69,7 +69,7 @@ cp -i librandomx.so ../../src/main/resources/native/librandomx_linux_x86_64.so
6969
cd randomx
7070
mkdir build && cd build
7171
cmake .. -DCMAKE_BUILD_TYPE=Release -DARCH=native -DBUILD_SHARED_LIBS=ON
72-
make
72+
make -j4
7373
cp -i librandomx.dylib ../../src/main/resources/native/librandomx_macos_x86_64.dylib
7474
```
7575

@@ -78,7 +78,7 @@ cp -i librandomx.dylib ../../src/main/resources/native/librandomx_macos_x86_64.d
7878
cd randomx
7979
mkdir build && cd build
8080
cmake .. -DCMAKE_BUILD_TYPE=Release -DARCH=native -DBUILD_SHARED_LIBS=ON
81-
make
81+
make -j4
8282
cp -i librandomx.dylib ../../src/main/resources/native/librandomx_macos_aarch64.dylib
8383
```
8484

@@ -87,7 +87,7 @@ cp -i librandomx.dylib ../../src/main/resources/native/librandomx_macos_aarch64.
8787
cd randomx
8888
mkdir build && cd build
8989
cmake .. -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DARCH=native -DBUILD_SHARED_LIBS=ON
90-
make
90+
make -j4
9191
cp -i randomx.dll ../../src/main/resources/native/librandomx_windows_x86_64.dll
9292
```
9393

@@ -105,7 +105,7 @@ To include `xdagj-native-randomx` in your project, add the following dependency
105105
<dependency>
106106
<groupId>io.xdag</groupId>
107107
<artifactId>xdagj-native-randomx</artifactId>
108-
<version>0.1.8</version>
108+
<version>0.2.0</version>
109109
</dependency>
110110
```
111111

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.xdag</groupId>
88
<artifactId>xdagj-native-randomx</artifactId>
9-
<version>0.1.9</version>
9+
<version>0.2.0</version>
1010

1111
<name>xdagj-native-randomx</name>
1212
<description>A Java RandomX Library For XDAGJ</description>

src/main/java/io/xdag/crypto/randomx/RandomXUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
*/
2424
package io.xdag.crypto.randomx;
2525

26+
import org.apache.commons.lang3.StringUtils;
2627
import org.apache.commons.lang3.SystemUtils;
2728

2829
import java.util.Set;
@@ -53,8 +54,7 @@ public static int getFlags() {
5354
public static Set<RandomXFlag> getFlagsSet() {
5455
int flags = getFlags();
5556
Set<RandomXFlag> flagsSet = RandomXFlag.fromValue(flags);
56-
57-
if (SystemUtils.IS_OS_MAC_OSX) {
57+
if (SystemUtils.IS_OS_MAC_OSX && StringUtils.containsIgnoreCase(SystemUtils.OS_ARCH, "aarch64")) {
5858
flagsSet.remove(RandomXFlag.JIT);
5959
}
6060

-271 KB
Binary file not shown.
267 KB
Binary file not shown.

0 commit comments

Comments
 (0)