diff options
Diffstat (limited to 'src/buildvm.c')
-rw-r--r-- | src/buildvm.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/buildvm.c b/src/buildvm.c index 9a3548c3..34f3df96 100644 --- a/src/buildvm.c +++ b/src/buildvm.c | |||
@@ -67,9 +67,15 @@ static int collect_reloc(BuildCtx *ctx, uint8_t *addr, int idx, int type); | |||
67 | #define DASM_ALIGNED_WRITES 1 | 67 | #define DASM_ALIGNED_WRITES 1 |
68 | 68 | ||
69 | /* Embed architecture-specific DynASM encoder and backend. */ | 69 | /* Embed architecture-specific DynASM encoder and backend. */ |
70 | #if LJ_TARGET_X86 | 70 | #if LJ_TARGET_X86ORX64 |
71 | #include "../dynasm/dasm_x86.h" | 71 | #include "../dynasm/dasm_x86.h" |
72 | #if LJ_32 | ||
72 | #include "buildvm_x86.h" | 73 | #include "buildvm_x86.h" |
74 | #elif defined(_WIN64) | ||
75 | #include "buildvm_x64win.h" | ||
76 | #else | ||
77 | #include "buildvm_x64.h" | ||
78 | #endif | ||
73 | #else | 79 | #else |
74 | #error "No support for this architecture (yet)" | 80 | #error "No support for this architecture (yet)" |
75 | #endif | 81 | #endif |