rearrange without changing semantics and "export" REMOVE_KERNEL

This commit is contained in:
Pratham Patel 2024-02-27 19:47:44 +05:30
parent b577ae1ae5
commit c5a327c611
Signed by: thefossguy
SSH Key Fingerprint: SHA256:/B3wAg7jnMEBQ2JwkebbS/eXVZANDmqRfnd9QkIhxMI
1 changed files with 7 additions and 7 deletions

View File

@ -68,22 +68,22 @@
hardeningDisable = [ "strictoverflow" ];
env = rec {
# build related flags
# just in case you want to disable building with the LLVM toolchain
# **DO NOT SET THIS TO '0'**
# **COMMENT IT OUT INSTEAD**
# because, for some reason, setting `LLVM` to '0' still counts... :/
LLVM = 1;
# build related flags (for the script)
BUILD_WITH_RUST = 0;
CLEAN_BUILD = 0;
INSTALL_ZE_KERNEL = 0;
REMOVE_KERNEL = 0;
# needed by Rust bindgen
LIBCLANG_PATH = pkgs.lib.makeLibraryPath [ llvmPkgs.libclang.lib ];
# because `grep gcc "$(nix-store -r $(command -v clang))/nix-support/libcxx-cxxflags"` matches
# but `grep clang "$(nix-store -r $(command -v clang))/nix-support/libcxx-cxxflags"` **DOES NOT MATCH**
KCFLAGS = "-isystem ${LIBCLANG_PATH}/clang/${llvmVersion}/include";
# just in case you want to disable building with the LLVM toolchain
# **DO NOT SET THIS TO '0'**
# **COMMENT IT OUT INSTEAD**
# because, for some reason, setting `LLVM` to '0' still counts... :/
LLVM = 1;
};
# **ONLY UNCOMMENT THIS IF YOU ARE _NOT_ USING HOME-MANAGER AND GET LOCALE ERRORS/WARNINGS**