MixmasterFresh / rust-on-gpu

A fork of the Rust Language for experimenting with GPU support.
https://www.rust-lang.org
Other
5 stars 0 forks source link

can't call `extern "C"` functions #7

Open japaric opened 8 years ago

japaric commented 8 years ago

You get an error at compile time:

error: unrecognized arch "nvptx" in target specification

Implementation-wise, we just have to define a "C ABI" in librustc_trans. See librustc_trans/cabi_asmjs.rs as an example.

We can't build the core crate for nvptx targets without this.