aboutsummaryrefslogtreecommitdiff
path: root/src/perfcnt/intel/counters.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/perfcnt/intel/counters.rs')
-rw-r--r--src/perfcnt/intel/counters.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/perfcnt/intel/counters.rs b/src/perfcnt/intel/counters.rs
index d05fd5c..9d046bf 100644
--- a/src/perfcnt/intel/counters.rs
+++ b/src/perfcnt/intel/counters.rs
@@ -5,4 +5,8 @@ use super::description::PebsType;
use super::description::Tuple;
use super::description::MSRIndex;
-include!(concat!(env!("OUT_DIR"), "/counters.rs")); \ No newline at end of file
+#[cfg(not(feature = "cached_counters"))]
+include!(concat!(env!("OUT_DIR"), "/counters.rs"));
+
+#[cfg(feature = "cached_counters")]
+include!("generated.rs");