Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upExpose target-cpu/target-feature #1137
Comments
This comment has been minimized.
This comment has been minimized.
|
cc #544 |
This comment has been minimized.
This comment has been minimized.
freebroccolo
commented
Mar 28, 2015
|
cc me |
This comment has been minimized.
This comment has been minimized.
|
Now that |
alexcrichton
closed this
May 18, 2015
This comment has been minimized.
This comment has been minimized.
|
Hm, it was pointed out to me that (I could be wrong, but reopening so this doesn't get forgotten. Close if I am.) |
huonw
reopened this
Jun 3, 2015
This comment has been minimized.
This comment has been minimized.
|
Yeah Can you elaborate on what the use case is for this? I would expect that a one-off compile (testing using new instructions) would be done through |
This comment has been minimized.
This comment has been minimized.
|
"Make this binary run as fast as possible here" essentially implies feeding However, that doesn't cover cases like "I'm building for other computers where every CPU is guaranteed to support SSE4.1 (but not necessarily anything later)". It does seem like a custom target may work better for this: e.g. Another case I can imagine is running tests/benchmarks with various |
This comment has been minimized.
This comment has been minimized.
|
Hm yeah I think those are compelling enough to not be totally covered by Before we expose something like this I just want to make sure that we have a clear policy on what is/isn't exposed. I don't want all compiler options to become Cargo options in 3 different places (taken to the extreme). |
alexcrichton
referenced this issue
Aug 17, 2015
Closed
Add relocation-model option to build profiles #1909
bjwbell
referenced this issue
Sep 5, 2015
Merged
Use SIMD in fast path for advance_for_char_range #7527
This comment has been minimized.
This comment has been minimized.
|
With support for |
alexcrichton
closed this
Mar 17, 2016
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
Lokathor
commented
Feb 6, 2018
|
I'd like to echo everything said in the above comment. |
This comment has been minimized.
This comment has been minimized.
|
Exactly as predicted, I forgot to set Please, please, please, allow |
This comment has been minimized.
This comment has been minimized.
|
@kornelski For what it's worth, you can at least set |
kornelski
referenced this issue
Apr 21, 2018
Open
There's no way to make `cargo build` - with no env vars - build redistributable executable #34
This comment has been minimized.
This comment has been minimized.
awakecoding
commented
Sep 17, 2018
|
+1 on this request. It's really important to be able to control this more easily than with an environment variable. |
huonw commentedJan 9, 2015
rustc won't use e.g. AVX instructions without being told that it's ok to compile to a non-lowest-common-denominator CPU, and programmers may wish to opt-in to these more specialised instructions.