Sign in
apache
/
incubator-teaclave-sgx-sdk
/
refs/tags/v0.9.1
/
.
/
third_party
/
matrixmultiply
/
build.rs
blob: 32f833c6890e7398acfb7a2fa08d890817553dcf [
file
] [
log
] [
blame
]
//!
use
std
::
env
;
fn
main
()
{
println
!(
"cargo:rerun-if-changed=build.rs"
);
if
let
Ok
(
features
)
=
env
::
var
(
"CARGO_CFG_TARGET_FEATURE"
)
{
if
features
.
split
(
","
).
map
(|
s
|
s
.
trim
()).
any
(|
feat
|
feat
==
"avx"
)
{
println
!(
"cargo:rustc-cfg=sgemm_8x8"
);
}
}
}