forked from UtsavBalar1231/kernel_microsoft_wsl2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_clang.sh
More file actions
28 lines (22 loc) · 725 Bytes
/
setup_clang.sh
File metadata and controls
28 lines (22 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#
# Clang-specific environment setup script for WSL2 kernel compilation
# Copyright (C) 2019 Danny Lin <danny@kdrag0n.dev>
#
# This script must be *sourced* from zsh (bash is NOT supported) in order to
# function. Nothing will happen if you execute it.
#
# Path to executables in Clang toolchain
clang_bin="$HOME/toolchains/proton-clang-10.0.0-20190723/bin"
# Number of parallel jobs to run
# Do not remove; set to 1 for no parallelism.
jobs=$(nproc)
# Do not edit below this point
# ----------------------------
# Load the shared helpers
source helpers.sh
export LD_LIBRARY_PATH="$clang_bin/../lib:$PATH"
export PATH="$clang_bin:$PATH"
kmake_flags+=(
CC="clang"
KBUILD_COMPILER_STRING="$(get_clang_version clang)"
)