mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-22 11:39:33 +00:00
Also fix RelWithDebIfno build in Visual Studio
This commit is contained in:
parent
50bdaba526
commit
6b7b3511ce
2 changed files with 3 additions and 3 deletions
|
@ -64,8 +64,8 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES MSVC)
|
|||
set(CMAKE_C_FLAGS_RELEASE "/MT /O2 /Oi /DNDEBUG /GL")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "/MT /O2 /Oi /DNDEBUG /GL")
|
||||
|
||||
set(CMAKE_C_FLAGS_RELWITHDEBINFO "/Ob1 /Zi")
|
||||
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/Ob1 /Zi")
|
||||
set(CMAKE_C_FLAGS_RELWITHDEBINFO "/Ob1 /Zi /DRELWITHDEBINFO")
|
||||
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/Ob1 /Zi /DRELWITHDEBINFO")
|
||||
|
||||
add_definitions(/D_CRT_SECURE_NO_WARNINGS)
|
||||
add_definitions(/D_CRT_NONSTDC_NO_WARNINGS)
|
||||
|
|
|
@ -96,7 +96,7 @@ namespace randomx {
|
|||
|
||||
*/
|
||||
|
||||
# if defined(_MSC_VER) && defined(_DEBUG)
|
||||
# if defined(_MSC_VER) && (defined(_DEBUG) || defined (RELWITHDEBINFO))
|
||||
#define ADDR(x) ((((uint8_t*)&x)[0] == 0xE9) ? (((uint8_t*)&x) + *(const int32_t*)(((uint8_t*)&x) + 1) + 5) : ((uint8_t*)&x))
|
||||
# else
|
||||
#define ADDR(x) ((uint8_t*)&x)
|
||||
|
|
Loading…
Reference in a new issue