
* Add ccache * Update codecov.yml * Add libnyx * Fix * Add nyx build script * Fix build.sh && init executor.rs * Fix commit * Fix code * initialize `exector.rs` * refine API in `nyx_bridge.rs` * initialze `run_target` * add `test_nyxhelper` * initize `test_executor` * remove `nyx_beidge.rs` * make `test_executor` compile * Improve test * refine code * update version * fix docker * fix docker * Fix clippy * Fix build * fix build && add `set_timeout` * Fix and refine CI * fix CI * Fix CI * Add platform restrict * cargo fmt * add parallel mode * add example `nyx_libxml2_parallel` * fix fuzzer example * fix CI * add README * fix CI * fix CI * fix CI * remove unwrap and NyxResult * code format fix * add libnyx's rev * fix format * change Duration format && Fix CI * caego fmt * fix CI * fix CI * Add doc * test CI * Update test_all_fuzzers.sh * Update test_all_fuzzers.sh * Update test_all_fuzzers.sh * add cache for apt and cargo-install * Update build_and_test.yml * Update build_and_test.yml * tmp test CI * fix CI * remove debug cmd * remove test * code refine * code refine * code refine * code refine * add Makefile * fix example doc for nyx * add `NyxHelper::new_with_initial_timeout` * fix `NyxHelper::new` * fix curl parameter * code refine * add check for setup script * use afl-clang-fast in nyx * fix logic * fix makefile * fix CI * Update build_and_test.yml * Update build_and_test.yml * remove debug cmd Co-authored-by: syheliel <syheliel@gmail.com> Co-authored-by: Dominik Maier <dmnk@google.com>
19 lines
689 B
Rust
19 lines
689 B
Rust
use std::process::Command;
|
|
|
|
fn main() {
|
|
if cfg!(target_os = "linux") && cfg!(target_arch = "x86_64") {
|
|
println!("cargo:rerun-if-changed=build.rs");
|
|
// let output = Command::new("./build_nyx_support.sh").output().expect("can't run ./build_nyx_support.sh");
|
|
let status = Command::new("./build_nyx_support.sh")
|
|
.status()
|
|
.expect("can't run ./build_nyx_support.sh");
|
|
if status.success() {
|
|
println!("success to run ./build_nyx_support.sh");
|
|
} else {
|
|
panic!("fail to run ./build_nyx_support.sh");
|
|
}
|
|
} else {
|
|
println!("cargo:warning=NYX node is only avaliable on x64 Linux");
|
|
}
|
|
}
|