]> git.lizzy.rs Git - rust.git/commit
fix built-in target detection
authorJorge Aparicio <japaricious@gmail.com>
Mon, 2 May 2016 23:51:24 +0000 (18:51 -0500)
committerJorge Aparicio <japaricious@gmail.com>
Mon, 2 May 2016 23:59:40 +0000 (18:59 -0500)
commit59435072f58e1d622e1664f0a7e44830891c958f
treeb66a76768c8a1bc7514850ac3106a92de2df8756
parentd80497e628945c3f11ff351030b4c62a8533e01e
fix built-in target detection

previously the logic was accepting wrong triples (like
`x86_64_unknown-linux-musl`) as valid ones (like `x86_64-unknown-linux-musl`) if
they contained an underscore instead of a dash.

fixes #33329
src/librustc_back/target/mod.rs
src/test/run-make/issue-33329/Makefile [new file with mode: 0644]
src/test/run-make/issue-33329/main.rs [new file with mode: 0644]