@@ -54,15 +54,15 @@ fn main() {
54
54
// LLVM are compiled the same way, but for us that's typically the case.
55
55
//
56
56
// We *want* detect this cross compiling situation by asking llvm-config
57
- // what it's host-target is. If that's not the TARGET, then we're cross
57
+ // what its host-target is. If that's not the TARGET, then we're cross
58
58
// compiling. Unfortunately `llvm-config` seems either be buggy, or we're
59
59
// misconfiguring it, because the `i686-pc-windows-gnu` build of LLVM will
60
60
// report itself with a `--host-target` of `x86_64-pc-windows-gnu`. This
61
61
// tricks us into thinking we're doing a cross build when we aren't, so
62
62
// havoc ensues.
63
63
//
64
64
// In any case, if we're cross compiling, this generally just means that we
65
- // can't trust all the output of llvm-config becaues it might be targeted
65
+ // can't trust all the output of llvm-config because it might be targeted
66
66
// for the host rather than the target. As a result a bunch of blocks below
67
67
// are gated on `if !is_crossed`
68
68
let target = env:: var ( "TARGET" ) . expect ( "TARGET was not set" ) ;
@@ -166,7 +166,7 @@ fn main() {
166
166
167
167
let ( llvm_kind, llvm_link_arg) = detect_llvm_link ( ) ;
168
168
169
- // Link in all LLVM libraries, if we're uwring the "wrong" llvm-config then
169
+ // Link in all LLVM libraries, if we're using the "wrong" llvm-config then
170
170
// we don't pick up system libs because unfortunately they're for the host
171
171
// of llvm-config, not the target that we're attempting to link.
172
172
let mut cmd = Command :: new ( & llvm_config) ;
0 commit comments