Przeglądaj źródła

Enable clang LTO on desktop

Donald Carr 4 lat temu
rodzic
commit
af0afa8c32
2 zmienionych plików z 90 dodań i 105 usunięć
  1. 4 2
      PKGBUILD
  2. 86 103
      desktop

+ 4 - 2
PKGBUILD

@@ -6,7 +6,7 @@ options=('!strip')
 # The firmware the kernel produces blows: don't falsify this lightly
 # "linux-firmware=20170309.695f2d6-1"
 pkgrel=1
-pkgver=5.11.rc5.50.g2a5c41f21ebd
+pkgver=5.11.10679.g381aff47f157
 pkgdesc="Kernel build from head"
 arch=("x86_64" "aarch64" "armv7h")
 license=("GPL2.1")
@@ -203,7 +203,9 @@ if [ -n "${LOCAL_PI_VER}" ]; then
     esac
 else
     echo "Compiling for desktop"
-    _xcompile_args="CC=clang HOSTCC=clang"
+    # wasted a lot of time manually tracking this shit down before finding this doc, like a muppet
+    # Documentation/kbuild/llvm.rst
+    _xcompile_args="LLVM=1 LLVM_IAS=1"
     #_xcompile_args=""
     _config_file="${startdir}/desktop"
     #_config_file="${_kernel_src_dir}/configs/desktop"

Plik diff jest za duży
+ 86 - 103
desktop


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików