From 2abe0ac3e71743147c433e0b901eaf3d244ef099 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 4 Sep 2019 22:29:54 +0800 Subject: fix ci errors --- tests/projects/hybrid/static_library/src/main.cpp | 2 ++ tests/projects/hybrid/static_library/xmake.lua | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/projects/hybrid/static_library/src/main.cpp b/tests/projects/hybrid/static_library/src/main.cpp index 2750fcf2c..2e70301ce 100644 --- a/tests/projects/hybrid/static_library/src/main.cpp +++ b/tests/projects/hybrid/static_library/src/main.cpp @@ -4,7 +4,9 @@ int main(int argc, char** argv) { test1(); test2(); +#ifdef MACOSX test3(); test4(); +#endif return 0; } diff --git a/tests/projects/hybrid/static_library/xmake.lua b/tests/projects/hybrid/static_library/xmake.lua index 75d01d3b1..bc382c7c3 100644 --- a/tests/projects/hybrid/static_library/xmake.lua +++ b/tests/projects/hybrid/static_library/xmake.lua @@ -3,12 +3,17 @@ add_rules("mode.release", "mode.debug") target("test") set_kind("static") add_files("src/*.c", "src/*.cpp") - add_files("src/*.m", "src/*.mm") + if is_plat("macosx") then + add_files("src/*.m", "src/*.mm") + end target("demo") set_kind("binary") add_deps("test") add_files("src/main.cpp") + if is_plat("macosx") then + add_defines("MACOSX") + end target("demo2") set_kind("binary") -- cgit v1.3.1