1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:27:35 +00:00

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 #pragma once
#include <LibJIT/X86_64/Assembler.h> #include <AK/Platform.h>
namespace JIT {
#if ARCH(X86_64) #if ARCH(X86_64)
# include <LibJIT/X86_64/Assembler.h>
# define JIT_ARCH_SUPPORTED 1 # define JIT_ARCH_SUPPORTED 1
typedef X86_64Assembler Assembler; namespace JIT {
using Assembler = X86_64Assembler;
}
#else #else
# undef JIT_ARCH_SUPPORTED # undef JIT_ARCH_SUPPORTED
#endif #endif
}