summaryrefslogtreecommitdiff
path: root/xmake/rules/objc++/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-01-23 22:49:14 +0800
committerruki <[email protected]>2020-01-23 10:55:24 +0800
commitd989ec1a9903dde07d08bf58386a45dd53651f6c (patch)
tree25dc68e9e4641a53c812d7858a0141f5646cb160 /xmake/rules/objc++/xmake.lua
parent17d5e2d5fd3f1d10c0598068cfd58412f848243e (diff)
support to compile *.c as c++
Diffstat (limited to 'xmake/rules/objc++/xmake.lua')
-rw-r--r--xmake/rules/objc++/xmake.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/objc++/xmake.lua b/xmake/rules/objc++/xmake.lua
index 55306a934..5235aeff8 100644
--- a/xmake/rules/objc++/xmake.lua
+++ b/xmake/rules/objc++/xmake.lua
@@ -20,13 +20,13 @@
-- define rule: objc.build
rule("objc.build")
- set_extensions(".m")
+ set_sourcekinds("mm")
add_deps("c.build.pcheader")
on_build_files("private.action.build.object")
-- define rule: objc++.build
rule("objc++.build")
- set_extensions(".mm")
+ set_sourcekinds("mxx")
add_deps("c++.build.pcheader")
on_build_files("private.action.build.object")