summaryrefslogtreecommitdiff
path: root/xmake/rules/utils/ispc/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/rules/utils/ispc/xmake.lua')
-rw-r--r--xmake/rules/utils/ispc/xmake.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/rules/utils/ispc/xmake.lua b/xmake/rules/utils/ispc/xmake.lua
index b1e924c65..cce467336 100644
--- a/xmake/rules/utils/ispc/xmake.lua
+++ b/xmake/rules/utils/ispc/xmake.lua
@@ -1,12 +1,12 @@
rule("utils.ispc")
set_extensions(".ispc")
- on_load(function (target)
+ on_config(function (target)
local headersdir = path.join(target:autogendir(), "rules", "utils", "ispc", "headers")
os.mkdir(headersdir)
target:add("includedirs", headersdir, {public = true})
end)
-
+
before_buildcmd_file(function (target, batchcmds, sourcefile_ispc, opt)
import("lib.detect.find_tool")
local ispc = assert(find_tool("ispc"), "ispc not found!")
@@ -56,7 +56,7 @@ rule("utils.ispc")
table.insert(flags, "-h")
table.insert(flags, path(headersfile))
table.insert(flags, path(sourcefile_ispc))
-
+
batchcmds:show_progress(opt.progress, "${color.build.object}compiling.ispc %s", sourcefile_ispc)
batchcmds:mkdir(objectdir)
batchcmds:vrunv(ispc.program, flags)