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:
parent
bacbd830fe
commit
64947506da
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue