Skip to content

Commit

Permalink
GCC Flags
Browse files Browse the repository at this point in the history
  • Loading branch information
lseman authored Jan 11, 2024
1 parent 4b09f26 commit 6bbc215
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion linux-cachyos/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,11 @@ prepare() {

build() {
cd ${srcdir}/${_srcname}
make ${BUILD_FLAGS[*]} -j$(nproc) all
if [ -z "${_use_llvm_lto}" ] && ([ -z "${CC}" ] || [ "${CC}" != "clang" ] || [ "${CC}" == "gcc" ]); then
make KCFLAGS="-fivopts -fmodulo-sched" ${BUILD_FLAGS[*]} -j$(nproc) all
else
make ${BUILD_FLAGS[*]} -j$(nproc) all
fi

if [ -n "$_build_nvidia" ]; then
cd "${srcdir}/${_nv_pkg}/kernel"
Expand Down

0 comments on commit 6bbc215

Please sign in to comment.