forked from teamnwah/openmw-tes3coop
[Server] Temporarily disable CallFF for ARM
This commit is contained in:
parent
f015c3b2f6
commit
15a197cb9a
2 changed files with 8 additions and 6 deletions
|
@ -1,8 +1,10 @@
|
|||
project(tes3mp-server)
|
||||
|
||||
if(UNIX) #temporarly disabled for non-unix
|
||||
find_package(CallFF REQUIRED)
|
||||
include_directories(${CallFF_INCLUDES})
|
||||
if(UNIX) #temporarily disabled for non-unix
|
||||
if(NOT (${CMAKE_CXX_COMPILER} MATCHES "aarch64" OR ${CMAKE_CXX_COMPILER} MATCHES "arm")) #temporarily disabled for arm
|
||||
find_package(CallFF REQUIRED)
|
||||
include_directories(${CallFF_INCLUDES})
|
||||
endif(NOT (${CMAKE_CXX_COMPILER} MATCHES "aarch64" OR ${CMAKE_CXX_COMPILER} MATCHES "arm"))
|
||||
endif(UNIX)
|
||||
|
||||
option(BUILD_WITH_PAWN "Enable Pawn language" OFF)
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <stdexcept>
|
||||
#include "ScriptFunction.hpp"
|
||||
|
||||
#ifndef _WIN32 // temporarily disabled
|
||||
#if !defined(_WIN32) && !defined(__arm__) // temporarily disabled
|
||||
#include <call.hpp>
|
||||
#endif
|
||||
|
||||
|
@ -155,11 +155,11 @@ boost::any ScriptFunction::Call(const vector<boost::any> &args)
|
|||
throw runtime_error("C++ call: Unknown argument identifier " + *it);
|
||||
}
|
||||
}
|
||||
#ifndef _WIN32 // temporarily disabled
|
||||
#if !defined(_WIN32) && !defined(__arm__) // temporarily disabled
|
||||
Func f = reinterpret_cast<Func>(fCpp);
|
||||
result = ::Call(f, callArgs);
|
||||
#else
|
||||
throw runtime_error("C++ call: Windows not supported yet.")
|
||||
throw runtime_error("C++ call: Windows and ARM not supported yet.")
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue