MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / configure_windows_llvm_aot_link

Function configure_windows_llvm_aot_link

xtask/src/main.rs:8179–8199  ·  view source on GitHub ↗
(command: &mut Command)

Source from the content-addressed store, hash-verified

8177}
8178
8179fn configure_windows_llvm_aot_link(command: &mut Command) {
8180 if !cfg!(windows) {
8181 return;
8182 }
8183
8184 let Some(prefix) = env::var_os("LLVM_SYS_221_PREFIX").or_else(|| env::var_os("LLVM_PATH"))
8185 else {
8186 return;
8187 };
8188 let llvm_lib = PathBuf::from(prefix).join("lib");
8189 if llvm_lib.is_dir() {
8190 let mut lib = llvm_lib.display().to_string();
8191 if let Some(existing) = env::var_os("LIB").and_then(|value| value.into_string().ok())
8192 && !existing.is_empty()
8193 {
8194 lib.push(';');
8195 lib.push_str(&existing);
8196 }
8197 command.env("LIB", lib);
8198 }
8199}
8200
8201fn package_assets(manifest: &SourcesManifest, target: &str) -> Result<()> {
8202 package_assets_with_options(manifest, target, true)

Callers 2

Calls 2

pushMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected