in aws-lc-sys/builder/cmake_builder.rs [389:424]
fn check_dependencies(&self) -> Result<(), String> {
let mut missing_dependency = false;
if target_os() == "windows" && target_arch() == "x86_64" {
if is_no_asm() && Some(true) == allow_prebuilt_nasm() {
eprintln!(
"Build environment has both `AWS_LC_SYS_PREBUILT_NASM` and `AWS_LC_SYS_NO_ASM` set.\
Please remove one of these environment variables.
See User Guide: https://aws.github.io/aws-lc-rs/index.html"
);
}
if !is_no_asm() && !test_nasm_command() && !use_prebuilt_nasm() {
eprintln!(
"Consider installing NASM or setting `AWS_LC_SYS_PREBUILT_NASM` in the build environment.\
See User Guide: https://aws.github.io/aws-lc-rs/index.html"
);
eprintln!("Missing dependency: nasm");
missing_dependency = true;
}
if target_arch() == "aarch64" && target_env() == "msvc" && !test_clang_cl_command() {
eprintln!("Missing dependency: clang-cl");
missing_dependency = true;
}
}
if let Some(cmake_cmd) = find_cmake_command() {
env::set_var("CMAKE", cmake_cmd);
} else {
eprintln!("Missing dependency: cmake");
missing_dependency = true;
}
if missing_dependency {
return Err("Required build dependency is missing. Halting build.".to_owned());
}
Ok(())
}