1
1
Fork 0
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:
Rick V 2018-08-24 23:08:39 -05:00 committed by despair86
parent 0adf981999
commit 0477db37ca
2 changed files with 9 additions and 0 deletions

View file

@ -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)

View file

@ -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 *