{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/1592","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/1592/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/1592/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/1592/events","html_url":"https://github.com/rust-lang/cargo/issues/1592","id":74002947,"number":1592,"title":"build script output flags not passed to rustdoc","user":{"login":"Eljay","id":6574,"avatar_url":"https://avatars.githubusercontent.com/u/6574?v=3","gravatar_id":"","url":"https://api.github.com/users/Eljay","html_url":"https://github.com/Eljay","followers_url":"https://api.github.com/users/Eljay/followers","following_url":"https://api.github.com/users/Eljay/following{/other_user}","gists_url":"https://api.github.com/users/Eljay/gists{/gist_id}","starred_url":"https://api.github.com/users/Eljay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eljay/subscriptions","organizations_url":"https://api.github.com/users/Eljay/orgs","repos_url":"https://api.github.com/users/Eljay/repos","events_url":"https://api.github.com/users/Eljay/events{/privacy}","received_events_url":"https://api.github.com/users/Eljay/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/cargo/labels/C-test","name":"C-test","color":"5319e7"},{"url":"https://api.github.com/repos/rust-lang/cargo/labels/E-easy","name":"E-easy","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-05-07T14:19:26Z","updated_at":"2015-12-17T16:01:48Z","closed_at":null,"body":"Seems to be the same issue as #1469 \r\n\r\nI have a simple build script that just outputs the search path:\r\n```rust\r\nfn main() {\r\n    println!(\"cargo:rustc-link-search=native=/home/lee/opt/lib\");\r\n}\r\n```\r\nThis seems to work correctly for building and running normal tests (both inline and in tests/ folder) but the -L flag doesn't get passed to rustdoc.\r\n\r\nExample of normal test output vs rustdoc output:\r\n```\r\nRunning `rustc tests/version.rs --crate-name version --crate-type bin -g --test -C metadata=0ac5f00c90e58674 -C extra-filename=-0ac5f00c90e58674 --out-dir /home/lee/rust/doctest/target/debug --emit=dep-info,link -L dependency=/home/lee/rust/doctest/target/debug -L dependency=/home/lee/rust/doctest/target/debug/deps --extern doctest=/home/lee/rust/doctest/target/debug/libdoctest.rlib -L native=/home/lee/opt/lib -L native=/home/lee/opt/lib`\r\n```\r\n```\r\nRunning `rustdoc --test /home/lee/rust/doctest/src/lib.rs --crate-name doctest -L dependency=/home/lee/rust/doctest/target/debug/deps --extern doctest=/home/lee/rust/doctest/target/debug/libdoctest.rlib`\r\n```\r\n(Also note the search path is added twice to the regular test but I suppose that's a separate issue)\r\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/comments/165494234","html_url":"https://github.com/rust-lang/cargo/issues/1592#issuecomment-165494234","issue_url":"https://api.github.com/repos/rust-lang/cargo/issues/1592","id":165494234,"user":{"login":"sgrif","id":1529387,"avatar_url":"https://avatars.githubusercontent.com/u/1529387?v=3","gravatar_id":"","url":"https://api.github.com/users/sgrif","html_url":"https://github.com/sgrif","followers_url":"https://api.github.com/users/sgrif/followers","following_url":"https://api.github.com/users/sgrif/following{/other_user}","gists_url":"https://api.github.com/users/sgrif/gists{/gist_id}","starred_url":"https://api.github.com/users/sgrif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgrif/subscriptions","organizations_url":"https://api.github.com/users/sgrif/orgs","repos_url":"https://api.github.com/users/sgrif/repos","events_url":"https://api.github.com/users/sgrif/events{/privacy}","received_events_url":"https://api.github.com/users/sgrif/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T16:01:48Z","updated_at":"2015-12-17T16:01:48Z","body":"Just ran into this trying to get Diesel running on my Windows box. Can confirm it's still an issue."}}