Add Gentoo Portage host configuration
This commit is contained in:
1 parent
d40cb10f21
commit
b19d64a282
57 files changed
+23234
-2
No files matched your search
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
# /etc/portage/env/codex-lowmem.conf
|
||||
# Alternative compiler configuration (Clang/LLVM) to mitigate low-memory compilation issues
|
||||
|
||||
# 1. Alternative compiler: Clang/LLVM toolchain
|
||||
CC="clang"
|
||||
CXX="clang++"
|
||||
CPP="clang-cpp"
|
||||
AR="llvm-ar"
|
||||
NM="llvm-nm"
|
||||
RANLIB="llvm-ranlib"
|
||||
|
||||
# 2. Parallel jobs reduction: limit make to 1 job to prevent RAM exhaustion
|
||||
MAKEOPTS="-j1"
|
||||
|
||||
# 3. Memory-efficient linker: use LLD and release unneeded memory pages
|
||||
LDFLAGS="${LDFLAGS} -fuse-ld=lld -Wl,--no-keep-memory"
|
||||
|
||||
# 4. Memory-efficient LTO: use ThinLTO instead of full monolithic LTO
|
||||
CFLAGS="${CFLAGS} -flto=thin"
|
||||
CXXFLAGS="${CXXFLAGS} -flto=thin"
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
# /etc/portage/env/compiler-clang.conf
|
||||
CC="clang"
|
||||
CXX="clang++"
|
||||
CPP="clang-cpp"
|
||||
AR="llvm-ar"
|
||||
NM="llvm-nm"
|
||||
RANLIB="llvm-ranlib"
|
||||
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
# /etc/portage/env/codex-lowmem.conf
|
||||
# Alternative compiler configuration (Clang/LLVM) to mitigate low-memory compilation issues
|
||||
|
||||
# 1. Alternative compiler: Clang/LLVM toolchain
|
||||
CC="clang"
|
||||
CXX="clang++"
|
||||
CPP="clang-cpp"
|
||||
AR="llvm-ar"
|
||||
NM="llvm-nm"
|
||||
RANLIB="llvm-ranlib"
|
||||
|
||||
# 2. Parallel jobs reduction: limit make to 1 job to prevent RAM exhaustion
|
||||
MAKEOPTS="-j1"
|
||||
|
||||
# 3. Memory-efficient linker: use LLD and release unneeded memory pages
|
||||
LDFLAGS="${LDFLAGS} -fuse-ld=lld -Wl,--no-keep-memory"
|
||||
|
||||
# 4. Memory-efficient LTO: use ThinLTO instead of full monolithic LTO
|
||||
CFLAGS="${CFLAGS} -flto=thin"
|
||||
CXXFLAGS="${CXXFLAGS} -flto=thin"
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
export RUSTFLAGS="${RUSTFLAGS} -C target-feature=-crt-static"
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
# /etc/portage/env/low-memory.conf
|
||||
MAKEOPTS="-j1"
|
||||
LDFLAGS="${LDFLAGS} -fuse-ld=lld -Wl,--no-keep-memory"
|
||||
CFLAGS="${CFLAGS} -flto=thin"
|
||||
CXXFLAGS="${CXXFLAGS} -flto=thin"
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
|
||||
Reference in new issue
Block a user