-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Francisco Javier Honduvilla Coto <javierhonduco@gmail.com>
- Loading branch information
1 parent
9de4269
commit 90a65a2
Showing
2 changed files
with
28 additions
and
2 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
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 @@ | ||
export RUST_BACKTRACE := "1" | ||
BASE_RUSTFLAGS := "-C force-frame-pointers=y -L " + absolute_path("") / "target/static-libs" | ||
RUSTFLAGS_STATIC := BASE_RUSTFLAGS + " -C target-feature=+crt-static" | ||
RUSTFLAGS_ASAN := BASE_RUSTFLAGS + " -Zsanitizer=address" | ||
|
||
build: build-native-libraries | ||
RUSTFLAGS="{{BASE_RUSTFLAGS}}" cargo build | ||
|
||
test: build-native-libraries | ||
RUSTFLAGS="{{BASE_RUSTFLAGS}}" cargo test | ||
|
||
build-release: build-native-libraries | ||
RUSTFLAGS="{{RUSTFLAGS_STATIC}}" cargo build --release --target x86_64-unknown-linux-gnu | ||
|
||
xtask: build-native-libraries | ||
RUSTFLAGS="{{BASE_RUSTFLAGS}}" cargo xtask | ||
|
||
# Note that the native dependencies are not instrumented. | ||
build-asan: build-native-libraries | ||
RUSTFLAGS="{{RUSTFLAGS_ASAN}}" cargo +nightly build -Zbuild-std --target x86_64-unknown-linux-gnu | ||
|
||
test-asan: build-native-libraries | ||
RUSTFLAGS="{{RUSTFLAGS_ASAN}}" cargo +nightly test -Zbuild-std --target x86_64-unknown-linux-gnu | ||
|
||
build-native-libraries: | ||
./tools/build_deps |