mirror of
https://codeberg.org/wownero/RandomWOW
synced 2026-03-06 06:37:33 -05:00
Fixed tests on OpenBSD
Since OpenBSD 6.0 W^X is enforced. Added `RANDOMX_FLAG_SECURE` in tests and benchmarks. Updated comment. Excluded `cpu_set_t` since it is not defined on OpenBSD.
This commit is contained in:
@@ -190,6 +190,9 @@ int main(int argc, char** argv) {
|
||||
}
|
||||
if (jit) {
|
||||
flags |= RANDOMX_FLAG_JIT;
|
||||
#ifdef __OpenBSD__
|
||||
flags |= RANDOMX_FLAG_SECURE;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -199,9 +202,11 @@ int main(int argc, char** argv) {
|
||||
if (miningMode) {
|
||||
flags |= RANDOMX_FLAG_FULL_MEM;
|
||||
}
|
||||
#ifndef __OpenBSD__
|
||||
if (secure) {
|
||||
flags |= RANDOMX_FLAG_SECURE;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (flags & RANDOMX_FLAG_ARGON2_AVX2) {
|
||||
std::cout << " - Argon2 implementation: AVX2" << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user