26 lines
673 B
Bash
26 lines
673 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
#---------------------------------------------------------------------------------------------------
|
||
|
# API
|
||
|
#---------------------------------------------------------------------------------------------------
|
||
|
|
||
|
get_clang_bin_path() {
|
||
|
declare -n _path=$1
|
||
|
|
||
|
_path="C:\Program Files\LLVM\bin"
|
||
|
|
||
|
if [[ ! -d $_path ]]; then
|
||
|
error "Was unable to find LLVM at "$_path".\n"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
# Fix up the path
|
||
|
_path="/${_path/:/}" # Remove ':'.
|
||
|
_path="${_path//\\//}" # Remove Windows slashes.
|
||
|
_path="${_path// /\\ }" # Add a backslash before spaces.
|
||
|
|
||
|
# Assuming X64.
|
||
|
printf "${BOLD}${YELLOW}[Clang X64]${NORMAL}\n"
|
||
|
}
|
||
|
|