mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-12 05:18:43 +00:00
Debug why linker invocation doesn't work
This commit is contained in:
2
.github/workflows/test.yaml
vendored
2
.github/workflows/test.yaml
vendored
@@ -501,7 +501,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
RUSTFLAGS: "-Ccodegen-units=1 -Clink-dead-code -Coverflow-checks=off"
|
RUSTFLAGS: "-Ccodegen-units=1 -Clink-dead-code -Coverflow-checks=off"
|
||||||
WASMER_DIR: ./package
|
WASMER_DIR: ""
|
||||||
WAPM_DEV_TOKEN: ${{ secrets.WAPM_DEV_TOKEN }}
|
WAPM_DEV_TOKEN: ${{ secrets.WAPM_DEV_TOKEN }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
|
|||||||
4
.gitignore
vendored
4
.gitignore
vendored
@@ -16,3 +16,7 @@ api-docs-repo/
|
|||||||
/avd
|
/avd
|
||||||
/core
|
/core
|
||||||
out.txt
|
out.txt
|
||||||
|
wapm.toml
|
||||||
|
build-capi.tar.gz
|
||||||
|
build-wasmer.tar.gz
|
||||||
|
lcov.info
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
|
#[cfg(test)]
|
||||||
|
use std::process::Stdio;
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
static INCLUDE_REGEX: &str = "#include \"(.*)\"";
|
static INCLUDE_REGEX: &str = "#include \"(.*)\"";
|
||||||
@@ -278,6 +280,9 @@ fn test_ok() {
|
|||||||
println!("compile: {command:#?}");
|
println!("compile: {command:#?}");
|
||||||
// compile
|
// compile
|
||||||
let output = command
|
let output = command
|
||||||
|
.stdout(Stdio::inherit())
|
||||||
|
.stderr(Stdio::inherit())
|
||||||
|
.current_dir(find_wasmer_base_dir())
|
||||||
.output()
|
.output()
|
||||||
.expect(&format!("failed to compile {command:#?}"));
|
.expect(&format!("failed to compile {command:#?}"));
|
||||||
if !output.status.success() {
|
if !output.status.success() {
|
||||||
@@ -317,6 +322,14 @@ fn print_wasmer_root_to_stdout(config: &Config) {
|
|||||||
|
|
||||||
use walkdir::WalkDir;
|
use walkdir::WalkDir;
|
||||||
|
|
||||||
|
println!(
|
||||||
|
"wasmer dir: {}",
|
||||||
|
std::path::Path::new(&config.wasmer_dir)
|
||||||
|
.canonicalize()
|
||||||
|
.unwrap()
|
||||||
|
.display()
|
||||||
|
);
|
||||||
|
|
||||||
for entry in WalkDir::new(&config.wasmer_dir)
|
for entry in WalkDir::new(&config.wasmer_dir)
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.filter_map(Result::ok)
|
.filter_map(Result::ok)
|
||||||
@@ -325,6 +338,14 @@ fn print_wasmer_root_to_stdout(config: &Config) {
|
|||||||
println!("{f_name}");
|
println!("{f_name}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
println!(
|
||||||
|
"root dir: {}",
|
||||||
|
std::path::Path::new(&config.root_dir)
|
||||||
|
.canonicalize()
|
||||||
|
.unwrap()
|
||||||
|
.display()
|
||||||
|
);
|
||||||
|
|
||||||
for entry in WalkDir::new(&config.root_dir)
|
for entry in WalkDir::new(&config.root_dir)
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.filter_map(Result::ok)
|
.filter_map(Result::ok)
|
||||||
|
|||||||
Reference in New Issue
Block a user