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

@@ -21,7 +21,11 @@
// misrepresented as being the original software.
// 3. This notice may not be removed or altered from any source distribution.
#include <asmjit/core.h>
#if defined(ASMJIT_BUILD_X86) && ASMJIT_ARCH_X86
#include <asmjit/x86.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -196,3 +200,9 @@ int main() {
return nFailed ? 1 : 0;
}
#else
int main() {
printf("AsmJit X86 Emitter Test is disabled on non-x86 host\n\n");
return 0;
}
#endif