From da714a6b9bad1fb0608445bcb48c079bf0202ea8 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 27 Sep 2023 23:32:18 +0800 Subject: get linkorders --- tests/projects/c++/linkorders/xmake.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/projects/c++/linkorders/xmake.lua b/tests/projects/c++/linkorders/xmake.lua index b3df5f820..7742a1aee 100644 --- a/tests/projects/c++/linkorders/xmake.lua +++ b/tests/projects/c++/linkorders/xmake.lua @@ -12,7 +12,11 @@ target("demo") add_deps("foo") add_files("src/main.cpp") if is_plat("linux", "macosx") then - add_syslinks("pthread", "m") + add_syslinks("pthread", "m", "dl") end + if is_plat("macosx") then + add_frameworks("Foundation", "CoreFoundation") + end + add_linkorders("framework::Foundation", "png16", "foo", "m", "pthread") -- cgit v1.3.1