mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
wow64 cross compile setup
This commit is contained in:
parent
0adf981999
commit
0477db37ca
2 changed files with 9 additions and 0 deletions
|
@ -49,6 +49,12 @@ else()
|
|||
set(THREAD_LIB pthread)
|
||||
endif()
|
||||
|
||||
if(WOW64_CROSS_COMPILE)
|
||||
find_library(PSEH_LIB pseh)
|
||||
set(CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIBRARIES} ${PSEH_LIB}")
|
||||
set(CMAKE_C_STANDARD_LIBRARIES "${CMAKE_C_STANDARD_LIBRARIES} ${PSEH_LIB}")
|
||||
endif()
|
||||
|
||||
else()
|
||||
option (BUILD_AVX2 "Enable AVX2 FPU vector instructions." OFF)
|
||||
if (BUILD_AVX2)
|
||||
|
|
|
@ -13,6 +13,9 @@
|
|||
#include <llarp/net.h>
|
||||
#include <windows.h>
|
||||
#include <iphlpapi.h>
|
||||
#if WINNT_CROSS_COMPILE && !NTSTATUS
|
||||
typedef LONG NTSTATUS;
|
||||
#endif
|
||||
#include "win32_intrnl.h"
|
||||
|
||||
const char *
|
||||
|
|
Loading…
Reference in a new issue