We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
has_sev
1 parent 2a6e22a commit de9b419Copy full SHA for de9b419
build.rs
@@ -0,0 +1,10 @@
1
+// Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+// SPDX-License-Identifier: Apache-2.0 OR MIT
3
+
4
+fn main() {
5
+ // Define a `has_sev` attribute, which is used for conditional
6
+ // execution of SEV-specific tests and examples.
7
+ if std::path::Path::new("/dev/sev").exists() {
8
+ println!("cargo:rustc-cfg=has_sev");
9
+ }
10
+}
0 commit comments