Skip loading ruby_memcheck
diff --git a/Rakefile b/Rakefile
index 77e9d65..59f4b4b 100644
--- a/Rakefile
+++ b/Rakefile
@@ -22,10 +22,14 @@
 Rake::TestTask.new(test: :compile, &test_config)
 
 unless Gem.win_platform?
-  require "ruby_memcheck"
+  begin
+    require "ruby_memcheck"
 
-  namespace :test do
-    RubyMemcheck::TestTask.new(valgrind: :compile, &test_config)
+    namespace :test do
+      RubyMemcheck::TestTask.new(valgrind: :compile, &test_config)
+    end
+  rescue LoadError => exn
+    STDERR.puts "🚨🚨🚨🚨 Skipping RubyMemcheck: #{exn.inspect} 🚨🚨🚨🚨"
   end
 end