Browse Source

实测不需要写-D (#152)

* fix md

* fix md
Elite-stay 1 year ago
parent
commit
b36596b8b8
2 changed files with 2 additions and 2 deletions
  1. 1 1
      manual/custom_rule.md
  2. 1 1
      zh-cn/manual/custom_rule.md

+ 1 - 1
manual/custom_rule.md

@@ -900,7 +900,7 @@ The load script used to implement the custom rules will be executed when the tar
 ```lua
 rule("test")
     on_load(function (target)
-        target:add("defines", "-DTEST")
+        target:add("defines", "TEST")
     end)
 ```
 

+ 1 - 1
zh-cn/manual/custom_rule.md

@@ -902,7 +902,7 @@ target("test")
 ```lua
 rule("test")
     on_load(function (target)
-        target:add("defines", "-DTEST")
+        target:add("defines", "TEST")
     end)
 ```