pub fn build(
build_type: BuildType,
target_env: TargetEnv,
targets: HashSet<Platform>,
llvm_projects: HashSet<LLVMProject>,
enable_rtti: bool,
default_target: Option<TargetTriple>,
enable_tests: bool,
enable_coverage: bool,
extra_args: Vec<String>,
ccache_variant: Option<CcacheVariant>,
enable_assertions: bool,
sanitizer: Option<Sanitizer>,
enable_valgrind: bool,
valgrind_options: Vec<String>,
) -> 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.