浏览代码

improve tracy (#4153)

* improve tracy

* fix status
ruki 1 年之前
父节点
当前提交
9403c45175
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/t/tracy/xmake.lua

+ 2 - 2
packages/t/tracy/xmake.lua

@@ -70,8 +70,8 @@ package("tracy")
 
         -- collect tracy defines from cmake configs
         for _, config in ipairs(configs) do
-            local define = config:match("-D(TRACY_%S+)=")
-            if define then
+            local define, value = config:match("-D(TRACY_%S+)=(.*)")
+            if define and value and value == "ON" then
                 package:add("defines", define)
             end
         end