From 4282b6a23302c92fa77b9261526ce2f55e085f6c Mon Sep 17 00:00:00 2001 From: Elliott Slaughter Date: Tue, 21 Nov 2023 10:07:33 -0800 Subject: [PATCH] Fix Windows CI build (#650) --- src/tcompiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tcompiler.cpp b/src/tcompiler.cpp index 592b62dc..abf13ac6 100644 --- a/src/tcompiler.cpp +++ b/src/tcompiler.cpp @@ -242,7 +242,7 @@ int terra_inittarget(lua_State *L) { else TT->CPU = llvm::sys::getHostCPUName().str(); -#ifdef __x86_64__ +#if defined(__x86_64__) || defined(_WIN32) if (TT->CPU == "generic") { TT->CPU = "x86-64"; }