You are not logged in.

#1 2022-02-12 13:32:15

Derson5
Member
Registered: 2010-07-29
Posts: 32

Rust apps build with gcc, even clang is set up in makepkg.conf

Hi,

I wanted to build rust aplications from AUR with clang. I put this to my makepkg.conf.

CARGO_PROFILE_RELEASE_LTO="thin"
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=clang
RUSTFLAGS="-C opt-level=3 -C target-cpu=native -C linker-plugin-lto -C link-arg=-flto -C link-arg=-fuse-ld=lld"

But if I check apps, I see only gcc.
readelf -p .comment /usr/bin/garbage

String dump of section '.comment':
  [     0]  GCC: (GNU) 11.2.0
  [    12]  Linker: LLD 13.0.1

Offline

#2 2022-02-13 11:43:09

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,067

Re: Rust apps build with gcc, even clang is set up in makepkg.conf

building rust applications without using some parts of gcc may be impossible until https://github.com/rust-lang/rust/issues/72241 is solved.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
Did you use the guided installer ? If yes, I can't help you.

(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB