From 80d6b98f1e9b4f3977fb79d2212bbd83ed7cf7bb Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Thu, 13 Jan 2022 09:24:39 +0100 Subject: Fixed 'xmake test' using the wrong architecture value on non-Windows --- xmake.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'xmake.lua') diff --git a/xmake.lua b/xmake.lua index a053f0be3..616032373 100644 --- a/xmake.lua +++ b/xmake.lua @@ -244,8 +244,15 @@ task("test") server = "zenserver", integration = "zenserver-test" } + + local arch + if is_host("windows") then + arch = "x64" + else + arch = "x86_64" + end - print(os.exec("xmake config -c -m debug -a x64")) + print(os.exec("xmake config -c -m debug -a "..arch)) print(os.exec("xmake")) local tests = {} -- cgit v1.2.3