Skip to content

Commit 620d6d6

Browse files
committed
remove PWD from environment, to silence warning from kj/filesystem-disk-unix
1 parent 91b8682 commit 620d6d6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

capnpc/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,11 @@ impl CompilerCommand {
254254

255255
let mut command = self.new_command();
256256

257+
// We remove PWD from the env to avoid the following warning.
258+
// kj/filesystem-disk-unix.c++:1690:
259+
// warning: PWD environment variable doesn't match current directory
260+
command.env_remove("PWD");
261+
257262
command.arg("compile").arg("-o").arg("-");
258263

259264
if self.no_standard_import {

0 commit comments

Comments
 (0)