Skip to content

Commit

Permalink
Debug why linker invocation doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
fschutt committed Nov 29, 2022
1 parent f73be3c commit 9e30ac5
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ jobs:
env:
RUST_BACKTRACE: 1
RUSTFLAGS: "-Ccodegen-units=1 -Clink-dead-code -Coverflow-checks=off"
WASMER_DIR: ./package
WASMER_DIR: ""
WAPM_DEV_TOKEN: ${{ secrets.WAPM_DEV_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload coverage to Codecov
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ api-docs-repo/
/avd
/core
out.txt
wapm.toml
build-capi.tar.gz
build-wasmer.tar.gz
lcov.info
21 changes: 21 additions & 0 deletions lib/c-api/tests/wasmer-c-api-test-runner/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#[cfg(test)]
use std::error::Error;
#[cfg(test)]
use std::process::Stdio;

#[cfg(test)]
static INCLUDE_REGEX: &str = "#include \"(.*)\"";
Expand Down Expand Up @@ -278,6 +280,9 @@ fn test_ok() {
println!("compile: {command:#?}");
// compile
let output = command
.stdout(Stdio::inherit())
.stderr(Stdio::inherit())
.current_dir(find_wasmer_base_dir())
.output()
.expect(&format!("failed to compile {command:#?}"));
if !output.status.success() {
Expand Down Expand Up @@ -317,6 +322,14 @@ fn print_wasmer_root_to_stdout(config: &Config) {

use walkdir::WalkDir;

println!(
"wasmer dir: {}",
std::path::Path::new(&config.wasmer_dir)
.canonicalize()
.unwrap()
.display()
);

for entry in WalkDir::new(&config.wasmer_dir)
.into_iter()
.filter_map(Result::ok)
Expand All @@ -325,6 +338,14 @@ fn print_wasmer_root_to_stdout(config: &Config) {
println!("{f_name}");
}

println!(
"root dir: {}",
std::path::Path::new(&config.root_dir)
.canonicalize()
.unwrap()
.display()
);

for entry in WalkDir::new(&config.root_dir)
.into_iter()
.filter_map(Result::ok)
Expand Down

0 comments on commit 9e30ac5

Please sign in to comment.