summaryrefslogtreecommitdiff
path: root/xmake
diff options
context:
space:
mode:
authorwsw0108 <[email protected]>2021-07-08 21:02:09 +0800
committerwsw0108 <[email protected]>2021-07-08 21:02:09 +0800
commitf80fdc97ee6f25eb525f1105011e2d2fe2283d76 (patch)
tree0624ef827bd88a04726d21ae64aab7ddda934682 /xmake
parentef55681c13b9cdf27b308d39f2613e611ac7021a (diff)
add test project for rule 'capnproto.cpp'
Diffstat (limited to 'xmake')
-rw-r--r--xmake/rules/capnproto/capnp.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/capnproto/capnp.lua b/xmake/rules/capnproto/capnp.lua
index 0125a50f5..05114cced 100644
--- a/xmake/rules/capnproto/capnp.lua
+++ b/xmake/rules/capnproto/capnp.lua
@@ -78,7 +78,7 @@ function buildcmd(target, batchcmds, sourcefile_capnp, opt)
table.insert(argv, sourcefile_capnp)
batchcmds:vrunv(capnp, argv)
local configs = {includedirs = sourcefile_dir, languages = "c++14"}
- if is_plat("windows") then
+ if package:is_plat("windows") then
configs.cxflags = "/TP"
end
batchcmds:compile(sourcefile_cx, objectfile, {sourcekind = "cxx", configs = configs})