There are three cross compiling parameters that autotools generally uses: BUILD, TARGET, and HOST. BUILD is the machine the compiler is running on. HOST is the machine the resulting code will run on. TARGET is only useful when building a compiler to denote what target the compiler (running on HOST) will generate code for.
If you want to cross compile a standard autotools package, you pass --host not --target (note: that this is not the case for spidermonkey specifically, but it is documented there that they use a weird convention).
rustc's use of --target here breaks with these conventions. I noticed this recently when trying to debug native library builds in Servo because I was passing --target to configure incorrectly.
There are three cross compiling parameters that autotools generally uses: BUILD, TARGET, and HOST. BUILD is the machine the compiler is running on. HOST is the machine the resulting code will run on. TARGET is only useful when building a compiler to denote what target the compiler (running on HOST) will generate code for.
If you want to cross compile a standard autotools package, you pass
--hostnot--target(note: that this is not the case for spidermonkey specifically, but it is documented there that they use a weird convention).rustc's use of
--targethere breaks with these conventions. I noticed this recently when trying to debug native library builds in Servo because I was passing--targetto configure incorrectly.