Function compiler_llvm_builder::build
source · pub fn build(
build_type: BuildType,
targets: HashSet<Platform>,
enable_tests: bool,
enable_coverage: bool,
extra_args: Vec<String>,
use_ccache: bool,
enable_assertions: bool
) -> Result<()>
Expand description
Executes the building of the LLVM framework for the platform determined by the cfg macro. Since cfg is evaluated at compile time, overriding the platform with a command-line argument is not possible. So for cross-platform testing, comment out all but the line to be tested, and perhaps also checks in the platform-specific build method.