Make gdb jit symbol weak linking default in llvm-backend features

This commit is contained in:
Mark McCaskey
2020-02-26 19:41:53 -08:00
parent b5cbb9df60
commit 0593965459
3 changed files with 4 additions and 6 deletions

View File

@ -10,7 +10,7 @@ edition = "2018"
readme = "README.md" readme = "README.md"
[dependencies] [dependencies]
wasmer-runtime-core = { path = "../runtime-core", version = "0.14.1" } wasmer-runtime-core = { path = "../runtime-core", version = "0.14.1", features = ["generate-debug-information-no-export-symbols"] }
wasmparser = "0.51.3" wasmparser = "0.51.3"
smallvec = "0.6" smallvec = "0.6"
goblin = "0.0.24" goblin = "0.0.24"

View File

@ -58,4 +58,4 @@ deterministic-execution = ["wasmparser/deterministic"]
generate-debug-information = ["wasm-debug"] generate-debug-information = ["wasm-debug"]
# don't export symbols related to the GDB JIT interafce, LLVM or some other native # don't export symbols related to the GDB JIT interafce, LLVM or some other native
# code will be providing them # code will be providing them
generate-debug-information-no-export-symbols = ["generate-debug-information", "wasm-debug"] generate-debug-information-no-export-symbols = []

View File

@ -196,9 +196,7 @@ impl JitCodeDebugInfoManager {
// ensure we set the version, even if externally linked // ensure we set the version, even if externally linked
__jit_debug_descriptor.version = 1; __jit_debug_descriptor.version = 1;
} }
Self { Self { inner: vec![] }
inner: vec![],
}
} }
/// Register debug info relating to JIT code with the debugger. /// Register debug info relating to JIT code with the debugger.