Skip to content

Commit

Permalink
feat: updated make.conf for Intel i9-9980HK CPU
Browse files Browse the repository at this point in the history
This makes the following changes:
- adds MAKEOPTS with -j16 to use all 16 threads
- enables the supported CPU_FLAGS_X86
- adds -march=skylake to *FLAGS
- adds -falign-functions=64 which aligns functions on L1 cache lines

Signed-off-by: Jaremy Hatler <[email protected]>
  • Loading branch information
jhatler committed Jan 1, 2024
1 parent 19f4d56 commit 1f545d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion make.conf
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
## Compiler Flags
COMMON_FLAGS="-O2 -pipe"
COMMON_FLAGS="-march=skylake -falign-functions=64 -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

CHOST="x86_64-pc-linux-gnu"

CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3"

MAKEOPTS="-j16"

## Directory Settings
PORTDIR="/var/db/repos/gentoo"
DISTDIR="/var/cache/distfiles"
Expand Down

0 comments on commit 1f545d8

Please sign in to comment.