On Tuesday, May 14, 2019 9:15:52 AM PDT Andrew Savchenko wrote: > Hi all! > > Looks like rustc supports target CPU and optlevel options, e.g. > rustc -C target-cpu=skylake -C opt-level=3 > as well as more fine-grade optimizations. > > But I see no way to specify them when building rust software. > Am I missing something? Is there any reason for not providing > something like RUSTFLAGS? > > Best regards, > Andrew Savchenko Hi,
I have this in make.conf for quite some time. RUSTFLAGS="-Ctarget-cpu=native -v" it just works(tm) as you expect it to. I remember earlier rustc/cargo were failing if same options specified twice, for example once in toml files and second time via RUSTFLAGS, but I can't reproduce anymore. Maybe it got smarter and RUSTFLAGS actually override whatever is set in toml files. - Regards, Georgy
signature.asc
Description: This is a digitally signed message part.
