Skip to content

Commit 03df781

Browse files
committed
tries to fix ubuntu+mac compile error
1 parent 43bbcfc commit 03df781

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

xmake.lua

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,13 @@ target("GrnGame")
104104
set_policy("build.optimization.lto", true)
105105
end
106106

107-
-- causes linking problem if we enable them and doesnt really matters
108-
add_defines("DAS_SMART_PTR_MAGIC=0", "DAS_SMART_PTR_TRACKER=0", { public = true })
107+
add_defines(
108+
-- causes linking problem if we enable them and doesnt really matters
109+
"DAS_SMART_PTR_MAGIC=0",
110+
"DAS_SMART_PTR_TRACKER=0",
111+
-- force it so vec2s has x and y members instead of an array
112+
"CGLM_USE_ANONYMOUS_STRUCT",
113+
{ public = true })
109114

110115
add_packages(
111116
"libsdl3",

0 commit comments

Comments
 (0)