Added ASMJIT_NO_FOREIGN compile-time option to disable non-host architectures in the future

This commit is contained in:
kobalicek
2020-07-07 10:27:46 +02:00
parent 2de7e74244
commit c130455898
9 changed files with 175 additions and 78 deletions

View File

@@ -34,6 +34,9 @@
// - Copy the code to the destination address.
// ----------------------------------------------------------------------------
#include <asmjit/core.h>
#if defined(ASMJIT_BUILD_X86) && ASMJIT_ARCH_X86
#include <asmjit/x86.h>
#include <stdio.h>
#include <stdlib.h>
@@ -173,3 +176,10 @@ int main() {
printf("Success:\n The generated function returned expected results\n");
return 0;
}
#else
int main() {
printf("AsmJit X86 Sections Test is disabled on non-x86 host\n\n");
return 0;
}
#endif