diff options
| author | ruki <[email protected]> | 2023-01-10 00:49:24 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-01-10 00:49:24 +0800 |
| commit | 5cb6e80bc887ed89a34d101e3080c4d9c087d8d0 (patch) | |
| tree | 2b0db8110ff94c3c54d72d8480b73e970b59c1e6 | |
| parent | b75d4ed54dfd6add634c24bd7ead65bb1a1f1111 (diff) | |
update rule
| -rw-r--r-- | xmake/rules/utils/ispc/xmake.lua | 6 |
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) |
