Skip to content

asm.js/wasm targets not usable on nightlies #37004

Closed
@alexcrichton

Description

@alexcrichton

While we produced asm.js/wasm targets on nightlies last night, the targets aren't actually usable on the standard suite of compilers. For example:

$ rustup target add asmjs-unknown-emscripten --toolchain nightly
$ cargo +nightly build --target asmjs-unknown-emscripten -v
error: failed to run `rustc` to learn about target-specific information

Caused by:
  process didn't exit successfully: `rustc - --crate-name _ --print=file-names --crate-type bin --crate-type rlib --target asmjs-unknown-emscripten` (exit code: 101)
--- stderr
error: Could not create LLVM TargetMachine for triple: asmjs-unknown-emscripten: No available targets are compatible with this triple. 

@tomaka pointed out to me that this is perhaps related to the fact that asmjs only works on rustbuild, not on the makefiles. The compiler I'm using was produced by the makefiles, so presumably it wasn't compiled with support for the asmjs target.

@brson this may necessitate an update to the makefiles :\

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions