-
-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Makefile.toml to intel_pt_baby_fuzzer (#2779)
* Add intel_pt_babyfuzzer Makefile * ad cargo make to readme
- Loading branch information
1 parent
d9ddf82
commit 365ee1c
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters