Skip to content

Commit

Permalink
Allow compiling non-32bit with feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
MrStonedOne authored Aug 9, 2024
1 parent e2fb902 commit 2d3d7ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ pub mod url;
#[cfg(feature = "worleynoise")]
pub mod worleynoise;

#[cfg(not(target_pointer_width = "32"))]
compile_error!("rust-g must be compiled for a 32-bit target");
#[cfg(all(not(target_pointer_width = "32"), not(feature = "allow_non_32bit")))]
compile_error!("Compiling for non-32bit is not allowed without enabling the `allow_non_32bit` feature.");

0 comments on commit 2d3d7ee

Please sign in to comment.