Skip to content

Commit 47600ee

Browse files
committed
should use '--src-prefix=*' for rule capnproto.cpp
1 parent 8397b90 commit 47600ee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

xmake/rules/capnproto/capnp.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ function buildcmd(target, batchcmds, sourcefile_capnp, opt)
7373
table.insert(argv, "-I" .. value)
7474
end
7575
table.insert(argv, "-I" .. (prefixdir and prefixdir or path.directory(sourcefile_capnp)))
76+
if prefixdir then
77+
table.insert(argv, "--src-prefix=" .. prefixdir)
78+
end
7679
table.insert(argv, "-o")
7780
table.insert(argv, "c++:" .. sourcefile_dir)
7881
table.insert(argv, sourcefile_capnp)

0 commit comments

Comments
 (0)