mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-08 13:48:26 +00:00
Revert renaming wasm.o / wasm.obj differences
This commit is contained in:
@@ -91,6 +91,9 @@ struct WasmerCreateObj {
|
||||
|
||||
impl Default for WasmerCreateObj {
|
||||
fn default() -> Self {
|
||||
#[cfg(not(windows))]
|
||||
let output_object_path = PathBuf::from("wasm.o");
|
||||
#[cfg(windows)]
|
||||
let output_object_path = PathBuf::from("wasm.obj");
|
||||
Self {
|
||||
current_dir: std::env::current_dir().unwrap(),
|
||||
@@ -268,6 +271,9 @@ fn create_obj(args: Vec<&'static str>, keyword_needle: &str, keyword: &str) -> a
|
||||
|
||||
let wasm_path = operating_dir.join(create_exe_test_wasm_path());
|
||||
|
||||
#[cfg(not(windows))]
|
||||
let object_path = operating_dir.join("wasm.o");
|
||||
#[cfg(windows)]
|
||||
let object_path = operating_dir.join("wasm.obj");
|
||||
|
||||
let output: Vec<u8> = WasmerCreateObj {
|
||||
@@ -330,6 +336,9 @@ fn create_exe_with_object_input(args: Vec<&'static str>) -> anyhow::Result<()> {
|
||||
|
||||
let wasm_path = operating_dir.join(create_exe_test_wasm_path());
|
||||
|
||||
#[cfg(not(windows))]
|
||||
let object_path = operating_dir.join("wasm.o");
|
||||
#[cfg(windows)]
|
||||
let object_path = operating_dir.join("wasm.obj");
|
||||
|
||||
WasmerCreateObj {
|
||||
|
||||
Reference in New Issue
Block a user