Sign in
apache
/
incubator-teaclave-sgx-sdk
/
e4eadce06e0dc6ce82dfebd82dd59c4ea28f8007
/
.
/
samplecode
/
unit-test
/
enclave
/
build.rs
blob: 1b816d8c4ba3d89ec0459f165d2516249dfcf9b4 [
file
] [
log
] [
blame
]
use
std
::
env
;
fn
main
()
{
let
is_sim
=
env
::
var
(
"SGX_MODE"
).
unwrap_or_else
(|
_
|
"HW"
.
to_string
());
match
is_sim
.
as_ref
()
{
"SW"
=>
{}
_
=>
{
// HW by default
println
!(
"cargo:rustc-cfg=feature=\"hw_test\""
);
}
}
}