diff --git a/rtiow/src/bin/tracer.rs b/rtiow/src/bin/tracer.rs index 293b3cb..9c3e3e6 100644 --- a/rtiow/src/bin/tracer.rs +++ b/rtiow/src/bin/tracer.rs @@ -97,6 +97,9 @@ fn main() -> Result<(), std::io::Error> { let opt = Opt::from_args(); let scene = opt.model.scene(&opt); fs::create_dir_all(&opt.output)?; + if opt.pprof.is_some() && !cfg!(feature = "profile") { + panic!("profiling disabled at compile time, but -pprof specified"); + } if let Some(ref pprof_path) = opt.pprof { PROFILER .lock()