Skip to content

Commit 2f96a4d

Browse files
committed
update per 4638
1 parent 47d480c commit 2f96a4d

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.cargo/config

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
stacks-node = "run --package stacks-node --"
33
fmt-stacks = "fmt -- --config group_imports=StdExternalCrate,imports_granularity=Module"
44

5+
# Uncomment to improve performance slightly, at the cost of portability
6+
# * Note that native binaries may not run on CPUs that are different from the build machine
7+
# [build]
8+
# rustflags = ["-Ctarget-cpu=native"]
9+
510
# Needed by perf to generate flamegraphs.
611
#[target.x86_64-unknown-linux-gnu]
712
#linker = "/usr/bin/clang"

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,19 @@ cargo build --release
4949
cargo build --profile release-lite
5050
```
5151

52+
_Note on building_: you may set `RUSTFLAGS` to build binaries for your native cpu:
53+
54+
```
55+
RUSTFLAGS="-Ctarget-cpu=native"
56+
```
57+
58+
or uncomment these lines in `./cargo/config`:
59+
60+
```
61+
# [build]
62+
# rustflags = ["-Ctarget-cpu=native"]
63+
```
64+
5265
## Testing
5366

5467
**Run the tests:**

0 commit comments

Comments
 (0)