1
0
Fork 0

Compare commits

...

3 Commits

2 changed files with 10 additions and 4 deletions

View File

@ -67,8 +67,8 @@
in
{
devShells = forEachSupportedSystem ({ pkgs, commonInputs, llvmPkgs, llvmVersion, ... }: rec {
default = withGNU;
#default = withLLVM;
default = withLLVM;
#default = withGNU;
withLLVM = (pkgs.mkShell.override { stdenv = llvmPkgs.stdenv; }) {
inputsFrom = [ pkgs.linux_latest_with_llvm ];
@ -88,7 +88,7 @@
# because, for some reason, setting `LLVM` to '0' still counts... :/
LLVM = 1;
# build related flags (for the script)
BUILD_WITH_RUST = 0;
BUILD_WITH_RUST = 1;
# needed by Rust bindgen
LIBCLANG_PATH = pkgs.lib.makeLibraryPath [ llvmPkgs.libclang.lib ];

View File

@ -14,9 +14,15 @@ else
exit 1
fi
if [ -n "${BUILD_WITH_RUST:-}" ]; then
LOCALVERSION_SUFFIX='-rust'
else
LOCALVERSION_SUFFIX=''
fi
CLEAN_BUILD="${CLEAN_BUILD:-0}"
KERNEL_CONFIG="${KERNEL_CONFIG:-}"
KERNEL_LOCALVERSION="-$(date +%Y.%m.%d.%H%M)"
KERNEL_LOCALVERSION="-$(date +%Y.%m.%d.%H%M)${LOCALVERSION_SUFFIX}"
BUILD_WITH_RUST="${BUILD_WITH_RUST:-0}"
INSTALL_ZE_KERNEL="${INSTALL_ZE_KERNEL:-1}"
FORCE_INSTALL_ZE_KERNEL="${FORCE_INSTALL_ZE_KERNEL:-0}"