Skip to content

Commit

Permalink
clean: Tabs -> Spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
fubuloubu committed Sep 13, 2019
1 parent 707bca2 commit 8fb6f8e
Show file tree
Hide file tree
Showing 9 changed files with 739 additions and 739 deletions.
24 changes: 12 additions & 12 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ use vergen::{ConstantsFlags, generate_cargo_keys};
const ERROR_MSG: &str = "Failed to generate metadata files";

fn main() {
generate_cargo_keys(ConstantsFlags::SHA_SHORT).expect(ERROR_MSG);
generate_cargo_keys(ConstantsFlags::SHA_SHORT).expect(ERROR_MSG);

let mut manifest_dir = PathBuf::from(
env::var("CARGO_MANIFEST_DIR").expect("`CARGO_MANIFEST_DIR` is always set by cargo.")
);
let mut manifest_dir = PathBuf::from(
env::var("CARGO_MANIFEST_DIR").expect("`CARGO_MANIFEST_DIR` is always set by cargo.")
);

while manifest_dir.parent().is_some() {
if manifest_dir.join(".git/HEAD").exists() {
println!("cargo:rerun-if-changed={}", manifest_dir.join(".git/HEAD").display());
return
}
while manifest_dir.parent().is_some() {
if manifest_dir.join(".git/HEAD").exists() {
println!("cargo:rerun-if-changed={}", manifest_dir.join(".git/HEAD").display());
return
}

manifest_dir.pop();
}
manifest_dir.pop();
}

println!("cargo:warning=Could not find `.git/HEAD` from manifest dir!");
println!("cargo:warning=Could not find `.git/HEAD` from manifest dir!");
}
14 changes: 7 additions & 7 deletions runtime/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
use wasm_builder_runner::{build_current_project_with_rustflags, WasmBuilderSource};

fn main() {
build_current_project_with_rustflags(
"wasm_binary.rs",
WasmBuilderSource::Crates("1.0.5"),
// This instructs LLD to export __heap_base as a global variable, which is used by the
// external memory allocator.
"-Clink-arg=--export=__heap_base",
);
build_current_project_with_rustflags(
"wasm_binary.rs",
WasmBuilderSource::Crates("1.0.5"),
// This instructs LLD to export __heap_base as a global variable, which is used by the
// external memory allocator.
"-Clink-arg=--export=__heap_base",
);
}
Loading

0 comments on commit 8fb6f8e

Please sign in to comment.