Skip to content

Commit

Permalink
Add intel_pt_babyfuzzer Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcondiro committed Dec 18, 2024
1 parent d9ddf82 commit 00bdcfe
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions fuzzers/binary_only/intel_pt_baby_fuzzer/Makefile.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[env]
RUST_BACKTRACE = "0"
TARGET_DIR = "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}"

[env.development]
PROFILE_DIR = "debug"
CARGO_BUILD_ARG = ""

[env.release]
PROFILE_DIR = "release"
CARGO_BUILD_ARG = "--release"

[tasks.build]
command = "cargo"
args = ["build", "--profile", "${CARGO_MAKE_CARGO_PROFILE}"]

[tasks.setcap]
script = "sudo setcap cap_ipc_lock,cap_sys_ptrace,cap_sys_admin,cap_syslog=ep ${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/${PROFILE_DIR}/${CARGO_MAKE_CRATE_NAME}"
dependencies = ["build"]

[tasks.run]
command = "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/${PROFILE_DIR}/${CARGO_MAKE_CRATE_NAME}"
dependencies = ["build", "setcap"]

[tasks.default]
alias = "run"

0 comments on commit 00bdcfe

Please sign in to comment.