diff options
Diffstat (limited to 'xmake/rules/c++/xmake.lua')
| -rw-r--r-- | xmake/rules/c++/xmake.lua | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/xmake/rules/c++/xmake.lua b/xmake/rules/c++/xmake.lua index b1263a407..cb5f5b43c 100644 --- a/xmake/rules/c++/xmake.lua +++ b/xmake/rules/c++/xmake.lua @@ -28,9 +28,7 @@ rule("c.build.pcheader") rule("c.build") set_extensions(".c") add_deps("c.build.pcheader") - on_build_files(function (target, sourcebatch, opt) - import("private.action.build.object")(target, sourcebatch, opt) - end) + on_build_files("private.action.build.object") -- define rule: c++.build.pcheader rule("c++.build.pcheader") @@ -42,9 +40,7 @@ rule("c++.build.pcheader") rule("c++.build") set_extensions(".cpp", ".cc", ".cxx") add_deps("c++.build.pcheader", "c++.build.modules") - on_build_files(function (target, sourcebatch, opt) - import("private.action.build.object")(target, sourcebatch, opt) - end) + on_build_files("private.action.build.object") -- define rule: cpp rule("c++") |
