summaryrefslogtreecommitdiff
path: root/tests/projects/c++
diff options
context:
space:
mode:
authorruki <[email protected]>2023-09-27 23:32:18 +0800
committerruki <[email protected]>2023-09-27 23:32:18 +0800
commitda714a6b9bad1fb0608445bcb48c079bf0202ea8 (patch)
tree41fc6a5af44256384be1249f9a1d302f23667263 /tests/projects/c++
parentfe931254f8f5fc0003b3fef14414b8adfa3adfd9 (diff)
get linkorders
Diffstat (limited to 'tests/projects/c++')
-rw-r--r--tests/projects/c++/linkorders/xmake.lua6
1 files changed, 5 insertions, 1 deletions
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")