From 45106175eef0f20f97c2228009db8ffd09a50319 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 20 Jan 2021 23:54:12 +0800 Subject: fix tests --- tests/projects/hybrid/static_library/test.lua | 6 +++--- tests/projects/hybrid/static_library/xmake.lua | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/projects/hybrid/static_library/test.lua b/tests/projects/hybrid/static_library/test.lua index b76241be2..5cad49b73 100644 --- a/tests/projects/hybrid/static_library/test.lua +++ b/tests/projects/hybrid/static_library/test.lua @@ -1,6 +1,6 @@ --- main entry function main(t) - - -- build project + if is_host("macosx") and os.arch() == "arm64" then + return + end t:build() end diff --git a/tests/projects/hybrid/static_library/xmake.lua b/tests/projects/hybrid/static_library/xmake.lua index 5d0ef1494..bc28df33f 100644 --- a/tests/projects/hybrid/static_library/xmake.lua +++ b/tests/projects/hybrid/static_library/xmake.lua @@ -17,7 +17,7 @@ target("demo") target("demo2") set_kind("binary") - add_files("src/main2.cpp", "src/*.d") + add_files("src/main2.cpp") if not is_plat("macosx") then set_enabled(false) end -- cgit v1.3.1