summary refs log tree commit diff
path: root/src/test/run-make/nvptx-binary-crate/Makefile
blob: 2c211b5c7850794d389c9c2c36d7bc7793caa68d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
-include ../../run-make-fulldeps/tools.mk

ifeq ($(TARGET),nvptx64-nvidia-cuda)
all:
	$(RUSTC) main.rs --crate-type="bin" --target $(TARGET) -O -C link-arg=--arch=sm_60 -o $(TMPDIR)/main.link_arg.ptx
	$(RUSTC) main.rs --crate-type="bin" --target $(TARGET) -O -C target-cpu=sm_60 -o $(TMPDIR)/main.target_cpu.ptx

	FileCheck main.rs --input-file $(TMPDIR)/main.link_arg.ptx
	FileCheck main.rs --input-file $(TMPDIR)/main.target_cpu.ptx
else
all:
endif