Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Anyone have any sugestions for COMMON_FLAGS (for clang)?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
jeffjeff
n00b
n00b


Joined: 13 May 2025
Posts: 1

PostPosted: Tue May 13, 2025 8:16 pm    Post subject: Anyone have any sugestions for COMMON_FLAGS (for clang)? Reply with quote

I tried a lot of flags and the only one that gave me more performance was fwhole-program-vtables.
Things like nosingedzeros gave me worse performance. Atleast when it came to the apps I tested.

Currently I have:

COMMON_FLAGS="-O3 -march=raptorlake -mtune=raptorlake -flto -pipe -fwhole-program-vtables "

CC="clang"

CPP="clang-cpp" # necessary for xorg-server and possibly other packages

CXX="clang++"

AR="llvm-ar"

NM="llvm-nm"

RANLIB="llvm-ranlib"

LDFLAGS="-fuse-ld=lld -Wl,--as-needed"

CFLAGS="${COMMON_FLAGS}"

CXXFLAGS="${COMMON_FLAGS}"

FCFLAGS="${COMMON_FLAGS}"

FFLAGS="${COMMON_FLAGS}"

[Administrator note: Moved from Documentation, Tips & Tricks, because this post is not itself documentation, a tip, or a trick. It is a request for guidance. -Hu]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



OSZAR »