···5757 command make -j$NIX_BUILD_CORES HOSTCC=${clang-host}/bin/clang TSC=true "$@"
5858 }
59596060- test -f .config || make defconfig ${lib.optionalString config.debug "debug.config"}
6060+ config() {
6161+ sed -i "/CONFIG_$1=/d" .config
6262+ sed -i "/CONFIG_$1 is not set/d" .config
6363+ case $2 in
6464+ y|n) echo "CONFIG_$1=$2" >> .config ;;
6565+ *) echo "CONFIG_$1=\"$2\"" >> .config ;;
6666+ esac
6767+ }
6868+6969+ if ! [ -f .config ]; then
7070+ make defconfig ${lib.optionalString config.debug "debug.config"}
7171+ config FILE_LOCKING y
7272+ fi
61736274 # this is a horrible dirty hack but there's some non-deterministic build failure
6375 for i in $(seq 1 3); do