only add debug extension in debug build

This commit is contained in:
Alex Janka 2023-10-19 22:39:37 +11:00
parent ecaac2afc1
commit e0a5f2a0b4

View file

@ -85,6 +85,7 @@ impl RendererBackendManager {
.unwrap() .unwrap()
.to_vec(); .to_vec();
#[cfg(debug_assertions)]
extension_names.push(DebugUtils::name().as_ptr()); extension_names.push(DebugUtils::name().as_ptr());
#[cfg(any(target_os = "macos", target_os = "ios"))] #[cfg(any(target_os = "macos", target_os = "ios"))]