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

The nvptx targets should generate .ptx files when compiling executables #4

Open japaric opened 8 years ago

japaric commented 8 years ago

Like the asmjs target does (though that target generates .js files).

IOW, we should be able to use the nvptx target without the --emit=asm flag:

# Executable
$ rustc --target nvptx-unknown-unknown foo.rs
$ ls foo.ptx
foo.ptx

# rlib
$ rustc --target nvptx-unknown-unknown --crate-type=rlib foo.rs
$ ls libfoo.rlib
libfoo.rlib
MixmasterFresh commented 8 years ago

I think the place to look for this is in mk/cfg. There are configuration files for the other targets in there.