Copy `.pdb` files to `target` directory
authorAleksey Kladov <aleksey.kladov@gmail.com>
Wed, 14 Mar 2018 19:21:02 +0000 (22:21 +0300)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Wed, 14 Mar 2018 19:31:19 +0000 (22:31 +0300)
commit9c0d3f29808944dbab00cc22943f8f0a5eed2f61
tree63a37da4547716a440a642739afef2ce64b8bade
parente540fd157c1a96e2a6769bdc82e46aebda54e127
Copy `.pdb` files to `target` directory

`.pdb` files are for windows debug info (unlike on linux, debug info is
in a separate file). Windows executable actually hard-code paths to
`.pdb` files, so debugging mvsc rust programs works even without this
patch. However, if you want to distribute the executable to other
machines, you'd better distribute both `foo.exe` and `foo.pdb`, because
absolute paths won't work on another machine. Having same-named .pdb
file alongside the binary would work though.

closes #4960
src/cargo/ops/cargo_rustc/context.rs
tests/testsuite/build.rs