Skip to content

Commit

Permalink
Actually print out the cargo messages
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleconroy committed Jun 11, 2024
1 parent 6ac5322 commit 79a1f7f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,10 @@ fn add(builder: &mut Builder<impl Write>, root: &Path, path: &Path) -> Result<()
fn maybe_make_cpython(repo_dir: &Path, wasi_sdk: &Path) -> Result<()> {
let cpython_wasi_dir = repo_dir.join("cpython/builddir/wasi");
if !cpython_wasi_dir.join("libpython3.12.so").exists() {
println!("building libpython3.12.so");
println!("cargo:warning=building libpython3.12.so");

if !cpython_wasi_dir.join("libpython3.12.a").exists() {
println!("building libpython3.12.a");
println!("cargo:warning=building libpython3.12.a");
let cpython_native_dir = repo_dir.join("cpython/builddir/build");
if !cpython_native_dir.join(PYTHON_EXECUTABLE).exists() {
fs::create_dir_all(&cpython_native_dir)?;
Expand Down Expand Up @@ -309,7 +309,7 @@ fn maybe_make_cpython(repo_dir: &Path, wasi_sdk: &Path) -> Result<()> {
.current_dir(&cpython_wasi_dir)
.arg("install"))?;
} else {
println!("using existing libpython3.12.a");
println!("cargo:warning=using existing libpython3.12.a");
}

run(Command::new(wasi_sdk.join("bin/clang"))
Expand All @@ -324,7 +324,7 @@ fn maybe_make_cpython(repo_dir: &Path, wasi_sdk: &Path) -> Result<()> {
.arg(cpython_wasi_dir.join("Modules/_decimal/libmpdec/libmpdec.a"))
.arg(cpython_wasi_dir.join("Modules/expat/libexpat.a")))?;
} else {
println!("using existing libpython3.12.so");
println!("cargo:warning=using existing libpython3.12.so");
}

Ok(())
Expand Down

0 comments on commit 79a1f7f

Please sign in to comment.