Skip to content

Commit 0b09f8f

Browse files
authored
Merge pull request #1499 from wsw0108/fix-rule-capnproto
fix rule 'capnproto.cpp'
2 parents 2ffa320 + a9fb748 commit 0b09f8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xmake/rules/capnproto/capnp.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function buildcmd(target, batchcmds, sourcefile_capnp, opt)
8181
table.insert(argv, sourcefile_capnp)
8282
batchcmds:vrunv(capnp, argv)
8383
local configs = {includedirs = sourcefile_dir, languages = "c++14"}
84-
if package:is_plat("windows") then
84+
if target:is_plat("windows") then
8585
configs.cxflags = "/TP"
8686
end
8787
batchcmds:compile(sourcefile_cx, objectfile, {sourcekind = "cxx", configs = configs})

0 commit comments

Comments
 (0)