From a9fb7488ceba0b8f12f9a7de18596a855865a62c Mon Sep 17 00:00:00 2001 From: wsw0108 Date: Fri, 9 Jul 2021 07:44:12 +0800 Subject: fix rule 'capnproto.cpp' --- xmake/rules/capnproto/capnp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}) -- cgit v1.3.1