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.
EMSDK_SOURCE_URL
The emscripten SDK git URL.
EMSDK_VERSION
The emscripten SDK version.
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.
directory_target_llvm
The LLVM target directory default path.
download
Download a file from the URL to the path.
download_musl
The musl downloading sequence.
get_xcode_version
Identify XCode version using pkgutil.
install_emsdk
Install the Emscripten SDK.
ninja
Call ninja to build the LLVM.
path_windows_to_unix
Converts a Windows path into a Unix path.
unpack_tar
Unpack a tarball.