Module utils

Source
Expand description

The LLVM builder utilities.

Constants§

DOWNLOAD_PARALLEL_REQUESTS
The number of parallel download requests.
DOWNLOAD_RETRIES
The number of download retries if failed.
DOWNLOAD_TIMEOUT_SECONDS
The download timeout in seconds.
LLVM_HOST_SOURCE_TAG
The LLVM host repository tag.
LLVM_HOST_SOURCE_URL
The LLVM host repository URL.
MUSL_SNAPSHOTS_URL
The musl snapshots URL.
XCODE_MIN_VERSION
The minimum required XCode version.
XCODE_VERSION_15
The XCode version 15.

Functions§

absolute_path
Create an absolute path, appending it to the current working directory.
check_presence
Checks if the tool exists in the system.
command
The subprocess runner.
download
Download a file from the URL to the path.
download_musl
The musl downloading sequence.
get_xcode_version
Identify XCode version using pkgutil.
ninja
Call ninja to build the LLVM.
path_windows_to_unix
Converts a Windows path into a Unix path.
unpack_tar
Unpack a tarball.