Closed star-hengxing closed 1 year ago
再试下 xmake update -s dev
不行,另外我试了一下我之前写的 rule utils.ispc,也是构建失败
add_rules("mode.debug", "mode.release")
target("test")
set_kind("binary")
-- add_rules("utils.ispc", {header_extension = "_ispc.h"})
-- set_values("ispc.flags", "--target=host")
-- add_files("src/*.ispc")
add_files("src/*.cpp")
on_load(function (target)
target:add("rules", "utils.ispc", {header_extension = "_ispc.h"})
target:set("values", "ispc.flags", "--target=host")
target:add("files", "src/*.ispc")
end)
试下
on_load(function (target)
import("core.project.rule")
local rule = rule.rule("utils.symbols.export_all")
target:rule_add(rule)
target:extraconf_set("rules", "utils.symbols.export_all", {export_classes = true})
end)
ipsc 那个更新下 dev,然后参考上面使用
可以了,套用这个写法两个都构建成功
Xmake Version
xmake v2.7.5+HEAD.d523fc824
Operating System Version and Architecture
Windows 10 Professional 19044.2130
Describe Bug
xmake.lua
try
Expected Behavior
Success to build.
Project Configuration
No response
Additional Information and Error Logs
No response