Skip to content

Rename --target to --host for autotools conventions #16523

@metajack

Description

@metajack

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions