mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-08 18:31:35 +00:00
* Add wasm32 simd128 intrinsics * test wasm32 simd128 instructions * Run wasm tests like all other tests * use modules instead of types to access wasm simd128 interpretations * generate docs for wasm32-unknown-unknown * fix typo * Enable #[assert_instr] on wasm32 * Shell out to Node's `execSync` to execute `wasm2wat` over our wasm file * Parse the wasm file line-by-line, looking for various function markers and such * Use the `elem` section to build a function pointer table, allowing us to map exactly from function pointer to a function * Avoid losing debug info (the names section) in release mode by stripping `--strip-debug` from `rust-lld`. * remove exclude list from Cargo.toml * fix assert_instr for non-wasm targets * re-format assert-instr changes * add crate that uses assert_instr * Fix instructions having extra quotes * Add assert_instr for wasm memory intrinsics * Remove hacks for git wasm-bindgen * add wasm_simd128 feature * make wasm32 build correctly * run simd128 tests on ci * remove wasm-assert-instr-tests
12 lines
282 B
Rust
12 lines
282 B
Rust
use std::os::unix::prelude::*;
|
|
use std::process::Command;
|
|
use std::env;
|
|
|
|
fn main() {
|
|
let args = env::args()
|
|
.skip(1)
|
|
.filter(|s| s != "--strip-debug")
|
|
.collect::<Vec<_>>();
|
|
panic!("failed to exec: {}", Command::new("rust-lld").args(&args).exec());
|
|
}
|