summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/build_sanitizer/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/rules/c++/build_sanitizer/xmake.lua')
-rw-r--r--xmake/rules/c++/build_sanitizer/xmake.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/xmake/rules/c++/build_sanitizer/xmake.lua b/xmake/rules/c++/build_sanitizer/xmake.lua
index cd96e9150..e7f8dbb62 100644
--- a/xmake/rules/c++/build_sanitizer/xmake.lua
+++ b/xmake/rules/c++/build_sanitizer/xmake.lua
@@ -30,3 +30,15 @@ rule("c++.build.sanitizer")
import("config")(target, "cxx")
end)
+-- define rule: objc.build.sanitizer
+rule("objc.build.sanitizer")
+ on_config(function (target)
+ import("config")(target, "mm")
+ end)
+
+-- define rule: objc++.build.sanitizer
+rule("objc++.build.sanitizer")
+ on_config(function (target)
+ import("config")(target, "mxx")
+ end)
+