Upgrade to the high-level ittapi v0.3.0 crate (#4003)

* Upgrade to the high-level ittapi v0.3.0 crate

* Add exclusion for windows mingw
This commit is contained in:
Benjamin Bouvier
2022-07-18 17:13:09 +02:00
committed by GitHub
parent 3032e3fcfb
commit f0337c9c76
4 changed files with 47 additions and 72 deletions

View File

@@ -12,7 +12,9 @@ cfg_if::cfg_if! {
}
cfg_if::cfg_if! {
if #[cfg(all(feature = "vtune", target_arch = "x86_64"))] {
// Note: VTune support is disabled on windows mingw because the ittapi crate doesn't compile
// there; see also https://github.com/bytecodealliance/wasmtime/pull/4003 for rationale.
if #[cfg(all(feature = "vtune", target_arch = "x86_64", not(all(target_os = "windows", target_env = "gnu"))))] {
#[path = "profiling/vtune.rs"]
mod vtune;
} else {