Skip to content

Commit

Permalink
Add fixes from publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark McCaskey committed Dec 16, 2020
1 parent d24981a commit dd226b1
Show file tree
Hide file tree
Showing 7 changed files with 163 additions and 36 deletions.
48 changes: 24 additions & 24 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 14 additions & 4 deletions lib/c-api/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,15 +417,25 @@ fn exclude_items_from_wasm_c_api(builder: Builder) -> Builder {
fn build_inline_c_env_vars() {
use std::ffi::OsStr;

let mut shared_object_dir = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap());
let mut shared_object_dir = PathBuf::from(env::var("OUT_DIR").unwrap());

assert_eq!(shared_object_dir.file_name(), Some(OsStr::new("c-api")));
assert_eq!(shared_object_dir.file_name(), Some(OsStr::new("out")));
shared_object_dir.pop();

assert_eq!(shared_object_dir.file_name(), Some(OsStr::new("lib")));
assert!(shared_object_dir
.file_name()
.as_ref()
.unwrap()
.to_string_lossy()
.to_string()
.starts_with("wasmer-c-api"));
shared_object_dir.pop();

shared_object_dir.push("target");
assert_eq!(shared_object_dir.file_name(), Some(OsStr::new("build")));
shared_object_dir.pop();
shared_object_dir.pop();

assert_eq!(shared_object_dir.file_name(), Some(OsStr::new("target")));
shared_object_dir.push(env::var("PROFILE").unwrap());

let shared_object_dir = shared_object_dir.as_path().to_string_lossy();
Expand Down
4 changes: 2 additions & 2 deletions lib/c-api/wasmer.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
#define WASMER_WASI_ENABLED

// This file corresponds to the following Wasmer version.
#define WASMER_VERSION "1.0.0-beta1"
#define WASMER_VERSION "1.0.0-beta2"
#define WASMER_VERSION_MAJOR 1
#define WASMER_VERSION_MINOR 0
#define WASMER_VERSION_PATCH 0
#define WASMER_VERSION_PRE "beta1"
#define WASMER_VERSION_PRE "beta2"

#endif // WASMER_H_PRELUDE

Expand Down
4 changes: 2 additions & 2 deletions lib/c-api/wasmer.hh
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
#define WASMER_WASI_ENABLED

// This file corresponds to the following Wasmer version.
#define WASMER_VERSION "1.0.0-beta1"
#define WASMER_VERSION "1.0.0-beta2"
#define WASMER_VERSION_MAJOR 1
#define WASMER_VERSION_MINOR 0
#define WASMER_VERSION_PATCH 0
#define WASMER_VERSION_PRE "beta1"
#define WASMER_VERSION_PRE "beta2"

#endif // WASMER_H_PRELUDE

Expand Down
Loading

0 comments on commit dd226b1

Please sign in to comment.