Skip to content

Commit

Permalink
[windows_kext] Improve wording for compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
vlabo committed Nov 7, 2024
1 parent 71205fa commit d025793
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions windows_kext/driver/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ mod stream_callouts;

use wdk::allocator::WindowsAllocator;

// For constancy of development debug mode should not be used.
// For consistent behavior during development and production only release mode should be used.
// Certain behavior of the compiler will change and this can result in errors and different behavior in debug and release mode.
#[cfg(debug_assertions)]
compile_error!("build in release mode");
compile_error!("Must be built in release mode to ensure consistent behavior and prevent optimization-related issues. Use `cargo build --release`.");

#[cfg(not(test))]
use core::panic::PanicInfo;
Expand Down

0 comments on commit d025793

Please sign in to comment.