From ea513af5ad755c199b387d3c1bea2f4fcbd44d49 Mon Sep 17 00:00:00 2001 From: nivkner Date: Thu, 7 Feb 2019 17:05:21 +0200 Subject: [PATCH] don't require nightly compiler from freestanding binary (#550) --- .travis.yml | 2 +- README.md | 4 ++-- azure-pipelines.yml | 2 +- rust-toolchain | 1 - 4 files changed, 4 insertions(+), 5 deletions(-) delete mode 100644 rust-toolchain diff --git a/.travis.yml b/.travis.yml index 09f8f021..4cd77885 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,4 +27,4 @@ cache: - $HOME/.cargo script: - - cargo rustc -- -Z pre-link-arg=-nostartfiles + - cargo rustc -- -Clink-arg=-nostartfiles diff --git a/README.md b/README.md index 1c16f755..be4794f5 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,10 @@ This repository contains the source code for the [A Freestanding Rust Binary][po ## Building -You need a nightly Rust compiler. To build the project on Linux, run: +To build the project on Linux, run: ``` -cargo rustc -- -Z pre-link-arg=-nostartfiles +cargo rustc -- -Clink-arg=-nostartfiles ``` The entry point and the build command differ slightly on macOS and Windows. See the [post] for more information. diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 084ac0d2..23754aaf 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -41,5 +41,5 @@ steps: displayName: 'Print Rust Version' continueOnError: true -- script: cargo rustc -- -Z pre-link-arg=-nostartfiles +- script: cargo rustc -- -Clink-arg=-nostartfiles displayName: 'Build' diff --git a/rust-toolchain b/rust-toolchain deleted file mode 100644 index bf867e0a..00000000 --- a/rust-toolchain +++ /dev/null @@ -1 +0,0 @@ -nightly