]> git.lizzy.rs Git - rust.git/commit
auto merge of #15971 : alexcrichton/rust/hurray-for-windows, r=pcwalton
authorbors <bors@rust-lang.org>
Fri, 25 Jul 2014 13:56:08 +0000 (13:56 +0000)
committerbors <bors@rust-lang.org>
Fri, 25 Jul 2014 13:56:08 +0000 (13:56 +0000)
commit7ff5bbd494ad40f494bf375451c4be52aa7c9d56
tree8d861d2a9fb1164571a1ccd9f2db639edbf3d2c6
parent44019c79e0c7bd08d6136cd609eef619c97f45eb
parentbd838a3b7ea3f6b410058e9413f5745586d3a459
auto merge of #15971 : alexcrichton/rust/hurray-for-windows, r=pcwalton

The right hand side of the comparison in these checks are values of type
Option<&Path> which are normalized versions of the left-hand side, so they're
not guaranteed to be byte-for-byte equivalent even though they're the same path.

For this reasons, the command line arguments are promoted to paths for
comparison of equality.

This fixes a bug on windows where if a library was specified with --extern it
would then be picked up twice because it was not considered to have been
previously registered.