LINUX.ORG.RU

https://rust-lang.github.io/packed_simd/perf-guide/target-feature/rustflags.html

Using native as the CPU model will cause Rust to generate and optimize code for the CPU running the compiler. It is useful when building programs which you plan to only use locally. This should never be used when the generated programs are meant to be run on other computers, such as when packaging for distribution or cross-compiling.

А точно надо?

Pinkbyte ★★★★★
()
Ответ на: комментарий от Pinkbyte

Так он же хочет не скомпилировать c native, а посмотреть, в какие -mwtf они превращаются компилятором (-###).

thriller ★★
()
Последнее исправление: thriller (всего исправлений: 1)
$ rustc --print cfg -C target-cpu=native
debug_assertions
panic="unwind"
target_abi=""
target_arch="x86_64"
target_endian="little"
target_env="gnu"
target_family="unix"
target_feature="adx"
target_feature="aes"
target_feature="avx"
target_feature="avx2"
...
thriller ★★
()
Ответ на: комментарий от ratvier

Не сразу понял юмора.

Это конечно прикольно, но он ещё пока «is in a very early stage and not usable yet for compiling real Rust programs.»

WatchCat ★★★★★
()
Ответ на: комментарий от thriller

А есть скрипт который это в RUSTFLAGS конвертирует?

ext4
() автор топика
Для того чтобы оставить комментарий войдите или зарегистрируйтесь.