about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-07-24 22:39:52 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-07-24 22:41:52 -0700
commitbd838a3b7ea3f6b410058e9413f5745586d3a459 (patch)
tree2efbef43f7ea4fb4c112e5d99a7a5631cccd9106 /src/rustllvm/RustWrapper.cpp
parentb9035c26e2c4368b39c8daa979f669d10d484825 (diff)
downloadrust-bd838a3b7ea3f6b410058e9413f5745586d3a459.tar.gz
rust-bd838a3b7ea3f6b410058e9413f5745586d3a459.zip
rustc: Compare paths with --extern, not bytes
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.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions