summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-07-09 07:50:25 +0800
committerGitHub <[email protected]>2021-07-09 07:50:25 +0800
commit0b09f8fe41184b539e1bbf3aa0086794a77708a0 (patch)
tree2520fcd2f2a32c7943b1f9e927bb7fc40edc2205
parent2ffa320d71f61fae814b24a477b743cc06292b04 (diff)
parenta9fb7488ceba0b8f12f9a7de18596a855865a62c (diff)
Merge pull request #1499 from wsw0108/fix-rule-capnproto
fix rule 'capnproto.cpp'
-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 2bd25c0e2..5b37b0956 100644
--- a/xmake/rules/capnproto/capnp.lua
+++ b/xmake/rules/capnproto/capnp.lua
@@ -81,7 +81,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 package:is_plat("windows") then
+ if target:is_plat("windows") then
configs.cxflags = "/TP"
end
batchcmds:compile(sourcefile_cx, objectfile, {sourcekind = "cxx", configs = configs})