LibJIT: Only include the Assembler header for the current platform

This commit is contained in:
Simon Wanner 2023-11-06 10:20:48 +01:00 committed by Andreas Kling
parent bacbd830fe
commit 64947506da

View file

@ -6,13 +6,14 @@
#pragma once
#include <LibJIT/X86_64/Assembler.h>
#include <AK/Platform.h>
namespace JIT {
#if ARCH(X86_64)
# include <LibJIT/X86_64/Assembler.h>
# define JIT_ARCH_SUPPORTED 1
typedef X86_64Assembler Assembler;
namespace JIT {
using Assembler = X86_64Assembler;
}
#else
# undef JIT_ARCH_SUPPORTED
#endif
}