From 43799fc0cf46780cb419adf644481060fc41f134 Mon Sep 17 00:00:00 2001 From: c0gent Date: Wed, 29 Aug 2018 06:57:55 -0700 Subject: [PATCH] Travis: Enable cpu-specific optimizations. --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 699d6f7..466b2d0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,8 @@ before_install: env: global: - RUST_BACKTRACE=1 - - RUSTFLAGS="-D warnings" + # Enables additional cpu-specific optimizations. + - RUSTFLAGS="-D warnings -C target-cpu=native" # Note: Currently (as of 2018-07-13), `clippy-preview` is only in the nightly # release. A version of `rustfmt` that supports the `--check` option # is also not in stable yet.