mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-22 04:27:58 +00:00
892c9b5fbe
Co-authored-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
19 lines
419 B
Bash
Executable File
19 lines
419 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
# Default directory for cloning the llvm-project repository
|
|
DEFAULT_DIR="llvm-project"
|
|
|
|
# Check if a directory argument is provided
|
|
if [ $# -eq 1 ]; then
|
|
DIR=$1
|
|
else
|
|
DIR=$DEFAULT_DIR
|
|
fi
|
|
|
|
# Clone LLVM 18 (any revision after commit bd32aaa is supposed to work)
|
|
if [ ! -d "${DIR}" ]; then
|
|
git clone --depth 1 --branch release/18.x https://github.com/llvm/llvm-project.git "${DIR}"
|
|
fi
|