From 660b48fae5f54c4a4994b8c23550f580927775ab Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Tue, 10 Mar 2015 01:46:45 +0100 Subject: Add support for target-cpu=native --- src/test/run-make/target-cpu-native/Makefile | 5 +++++ src/test/run-make/target-cpu-native/foo.rs | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 src/test/run-make/target-cpu-native/Makefile create mode 100644 src/test/run-make/target-cpu-native/foo.rs (limited to 'src/test') diff --git a/src/test/run-make/target-cpu-native/Makefile b/src/test/run-make/target-cpu-native/Makefile new file mode 100644 index 00000000000..0c9d93ecb2a --- /dev/null +++ b/src/test/run-make/target-cpu-native/Makefile @@ -0,0 +1,5 @@ +-include ../tools.mk + +all: + $(RUSTC) foo.rs -C target-cpu=native + $(call RUN,foo) diff --git a/src/test/run-make/target-cpu-native/foo.rs b/src/test/run-make/target-cpu-native/foo.rs new file mode 100644 index 00000000000..f7a9f969060 --- /dev/null +++ b/src/test/run-make/target-cpu-native/foo.rs @@ -0,0 +1,12 @@ +// Copyright 2014 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +fn main() { +} -- cgit 1.4.1-3-g733a5