wiggle: witx paths use shell expansion
instead of always being relative to CARGO_MANIFEST_DIR, each use site is responsible for either putting that variable or another one (set by a build.rs) at the start of witx paths.
This commit is contained in:
@@ -47,10 +47,7 @@ use config::{MissingMemoryConf, ModuleConf, TargetConf};
|
||||
///
|
||||
#[proc_macro]
|
||||
pub fn wasmtime_integration(args: TokenStream) -> TokenStream {
|
||||
let mut config = parse_macro_input!(args as config::Config);
|
||||
config.witx.make_paths_relative_to(
|
||||
std::env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR env var"),
|
||||
);
|
||||
let config = parse_macro_input!(args as config::Config);
|
||||
let doc = config.load_document();
|
||||
let names = Names::new(&config.ctx.name, quote!(wasmtime_wiggle));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user