Skip to content

Commit a01dd68

Browse files
bors[bot]stlankes
andauthored
Merge #198
198: add feature to enable/disable Qemu's interface for stdout r=mkroening a=stlankes Co-authored-by: Stefan Lankes <slankes@eonerc.rwth-aachen.de>
2 parents b856110 + af65b90 commit a01dd68

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

hermit-sys/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ dhcpv4 = ["smoltcp/proto-dhcpv4"]
2626
# only for internal usage, please don't use it
2727
with_submodule = []
2828
smp = []
29+
aarch64-qemu-stdout = []
2930

3031
[build-dependencies]
3132
walkdir = "2"

hermit-sys/build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ fn build_hermit(src_dir: &Path, target_dir_opt: Option<&Path>) {
6262
// disable all default features
6363
cmd.arg("--no-default-features");
6464

65-
if target_arch == "aarch64" {
65+
#[cfg(feature = "aarch64-qemu-stdout")]
66+
{
6667
cmd.arg("--features");
6768
cmd.arg("aarch64-qemu-stdout");
6869
}

0 commit comments

Comments
 (0)