File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 2
2
stacks-node = "run --package stacks-node --"
3
3
fmt-stacks = "fmt -- --config group_imports=StdExternalCrate,imports_granularity=Module"
4
4
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
+
5
10
# Needed by perf to generate flamegraphs.
6
11
#[target.x86_64-unknown-linux-gnu]
7
12
#linker = "/usr/bin/clang"
Original file line number Diff line number Diff line change @@ -49,6 +49,19 @@ cargo build --release
49
49
cargo build --profile release-lite
50
50
```
51
51
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
+
52
65
## Testing
53
66
54
67
** Run the tests:**
You can’t perform that action at this time.
0 commit comments