sagiegurari / rust_info

Extracts the current rust compiler information.
Apache License 2.0
8 stars 3 forks source link

Incorrect Target Triple on macOS and 32-bit Linux #3

Closed wagenet closed 4 years ago

wagenet commented 4 years ago

Describe the bug

On macOS, target_triple returns x86_64-apple-macos-. It should be x86_64-apple-darwin.

To Reproduce I discovered this using CARGO_MAKE_RUST_TARGET_TRIPLE in cargo make.

sagiegurari commented 4 years ago

thanks a lot for opening the issue. I'll take a look at it.

wagenet commented 4 years ago

I'm also seeing x86-unknown-linux-gnu when it seems it should be i686-unknown-linux-gnu.

sagiegurari commented 4 years ago

deleted the nonsense i wrote before. anyway, it does seem like an issue. i'm trying to see how to mitigate it now in a normal way :)

sagiegurari commented 4 years ago

A fix has been released in the new 0.3.1 version. I hope its solved correctly as i did verify with rustc values and compared with rustup triple values and built a whole set of tests with specific values.

wagenet commented 4 years ago

Thanks!