Browse Source

improve tracy (#4153)

* improve tracy

* fix status
ruki 1 year ago
parent
commit
9403c45175
1 changed files with 2 additions and 2 deletions
  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
         -- collect tracy defines from cmake configs
         for _, config in ipairs(configs) do
         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)
                 package:add("defines", define)
             end
             end
         end
         end