Merge pull request #212 from sched-ext/sccache

Doc & build: Warn about sccache
This commit is contained in:
Tejun Heo 2024-04-03 10:24:31 -10:00 committed by GitHub
commit 7b068d310a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 3 deletions

View File

@ -71,8 +71,9 @@ Include = /etc/pacman.d/cachyos-mirrorlist
$ sudo pacman -Sy cachyos/linux-sched-ext cachyos/linux-sched-ext-headers cachyos/scx-scheds
```
Note that the kernel installs as `/boot/vmlinuz-linux-sched-ext` along with the matching initramfs.
Update the bootloader configuration to add the boot entry for the new kernel.
:warning: The kernel installs as `/boot/vmlinuz-linux-sched-ext` along with
the matching initramfs. Update the bootloader configuration to add the boot
entry for the new kernel.
#### Setting Up Dev Environment

View File

@ -192,6 +192,11 @@ $ meson setup build -Dbuildtype=release
$ meson compile -C build scx_simple scx_rusty
```
:warning: **If your system has `sccache` installed**: `meson` automatically
uses `sccache` if available. However, `sccache` fails in one of the build
steps. If you encounter this issue, disable `sccache` by specifying `CC`
directly - `$ CC=clang meson setup build -Dbuildtype=release`.
You can also specify `-v` if you want to see the commands being used:
```

View File

@ -9,7 +9,7 @@ args=($out)
idx=0
cc=${args[idx]}
if [ "$cc" = "ccache" ]; then
if [ "$cc" = "ccache" -o "$cc" = "sccache" ]; then
idx=$((idx+1))
cc="$cc ${args[idx]}"
fi