Skip to content
This repository was archived by the owner on May 20, 2024. It is now read-only.

Commit 79bff2f

Browse files
committed
Set target-cpu=native flag from .cargo/config
1 parent 55b4548 commit 79bff2f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.cargo/config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[build]
2+
rustflags = ["-C", "target-cpu=native"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ to Rust. The libraries tested are:
99
- [rustc-serialize](https://github.com/rust-lang-nursery/rustc-serialize) 0.3.24
1010
- [simd-json](https://github.com/Licenser/simdjson-rs) 0.1.15 (this requires a modern x86 CPU for good results)
1111

12-
#### `$ RUSTFLAGS='-C target-cpu=native' cargo run --release`
12+
#### `$ cargo run --release`
1313

1414
```
1515
DOM STRUCT

0 commit comments

Comments
 (0)