summaryrefslogtreecommitdiff
path: root/xmake/rules/cppfront/xmake.lua
diff options
context:
space:
mode:
authorcarols <[email protected]>2024-04-07 22:11:58 +0800
committercarols <[email protected]>2024-04-07 22:11:58 +0800
commit0539773b74bcc7eabab6f16a8d1760c79bf75a14 (patch)
tree57a0f5c9481bef399d0567fc3c3ccfe2a3b70c94 /xmake/rules/cppfront/xmake.lua
parent4044b796efabe9d22ab4208bebe484c18492bf06 (diff)
cppfront.build->cppfront.build.cpp2, .h2 display compiling.h2
Diffstat (limited to 'xmake/rules/cppfront/xmake.lua')
-rw-r--r--xmake/rules/cppfront/xmake.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/rules/cppfront/xmake.lua b/xmake/rules/cppfront/xmake.lua
index 4cd6a9675..b90222aa9 100644
--- a/xmake/rules/cppfront/xmake.lua
+++ b/xmake/rules/cppfront/xmake.lua
@@ -33,7 +33,7 @@ rule("cppfront.build.h2")
-- add commands
local argv = {"-o", path(sourcefile_h), path(sourcefile_h2)}
- batchcmds:show_progress(opt.progress, "${color.build.object}compiling.cpp2 %s", sourcefile_h2)
+ batchcmds:show_progress(opt.progress, "${color.build.object}compiling.h2 %s", sourcefile_h2)
batchcmds:mkdir(basedir)
batchcmds:vrunv(cppfront.program, argv)
@@ -44,7 +44,7 @@ rule("cppfront.build.h2")
end)
-- define rule: cppfront.build
-rule("cppfront.build")
+rule("cppfront.build.cpp2")
set_extensions(".cpp2")
-- .h2 must compile before .cpp2
@@ -99,7 +99,7 @@ rule("cppfront")
add_deps("cppfront.build.h2")
-- add build rules
- add_deps("cppfront.build")
+ add_deps("cppfront.build.cpp2")
-- set compiler runtime, e.g. vs runtime
add_deps("utils.compiler.runtime")