mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 06:14:58 +00:00
LibJIT: Only include the Assembler header for the current platform
This commit is contained in:
parent
bacbd830fe
commit
64947506da
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue