diff options
| author | wsw0108 <[email protected]> | 2021-07-09 07:44:12 +0800 |
|---|---|---|
| committer | wsw0108 <[email protected]> | 2021-07-09 07:44:12 +0800 |
| commit | a9fb7488ceba0b8f12f9a7de18596a855865a62c (patch) | |
| tree | 2520fcd2f2a32c7943b1f9e927bb7fc40edc2205 | |
| parent | 2ffa320d71f61fae814b24a477b743cc06292b04 (diff) | |
fix rule 'capnproto.cpp'
| -rw-r--r-- | xmake/rules/capnproto/capnp.lua | 2 |
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}) |
