mozilla / rust-android-gradle

Apache License 2.0
1.03k stars 67 forks source link

Desktop build for current target should not pass --target #10

Closed thomcc closed 4 years ago

thomcc commented 4 years ago

E.g. on darwin we shouldn't pass --target=x86_64-apple-darwin. Doing prevents us from reusing anything in either sccache or cargo's dep cache.

ncalexan commented 4 years ago

Mmm. I vaguely recall doing this for consistency. It's especially annoying 'cuz the names and directory structure of Cargo's output change with and without an explict --target. But you're absolutely right, we should not pass --target for the current target.