Skip to content

Commit 43c22f0

Browse files
committed
Stop assuming fiddle 1.1.8+ for older rubies
1 parent b5218ea commit 43c22f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

harness/harness-common.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ def is_macos
7070
end
7171

7272
def get_maxrss
73-
gem "fiddle", ">= 1.1.8" # For ruby 3.5.0-dev compatibility
73+
unless $LOAD_PATH.resolve_feature_path("fiddle")
74+
gem "fiddle", ">= 1.1.8" # For ruby 3.5.0-dev compatibility
75+
end
7476

7577
require 'fiddle'
7678
require 'rbconfig/sizeof'

0 commit comments

Comments
 (0)