]> git.lizzy.rs Git - rust.git/commitdiff
rustbuild: Fix panic message when musl-root not set
authorNick Stevens <nick@bitcurry.com>
Wed, 5 Oct 2016 01:22:51 +0000 (20:22 -0500)
committerNick Stevens <nick@bitcurry.com>
Wed, 5 Oct 2016 01:22:51 +0000 (20:22 -0500)
The previous panic message delivered when a musl target was specified
but musl-root was not specified incorrectly instructed the user to add
the musl-root key to the "build" section of config.toml. The key
actually needs to be added to the "rust" section.

src/bootstrap/sanity.rs

index c4e6399c2c36d270fc65fed47663379bf92bacff..969cd70fd57eb43e027d41580601398bd097afce 100644 (file)
@@ -146,8 +146,8 @@ pub fn check(build: &mut Build) {
                     }
                 }
                 None => {
-                    panic!("when targeting MUSL either the build.musl-root \
-                            option or the target.$TARGET.musl-root one must \
+                    panic!("when targeting MUSL either the rust.musl-root \
+                            option or the target.$TARGET.musl-root option must \
                             be specified in config.toml")
                 }
             }