Skip to content

Commit 1edf9bd

Browse files
committed
Travis: Enable cpu-specific optimizations.
This is off by default so that binaries can be shared. Enabling this flag could improve test speed on Travis (will check).
1 parent f661e8a commit 1edf9bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ before_install:
2121
env:
2222
global:
2323
- RUST_BACKTRACE=1
24-
- RUSTFLAGS="-D warnings"
24+
# Enables additional cpu-specific optimizations.
25+
- RUSTFLAGS="-D warnings -C target-cpu=native"
2526
# Note: Currently (as of 2018-07-13), `clippy-preview` is only in the nightly
2627
# release. A version of `rustfmt` that supports the `--check` option
2728
# is also not in stable yet.

0 commit comments

Comments
 (0)