Skip to content

Commit a1213eb

Browse files
WillHaltoko1
authored andcommitted
fix ruby version check for rb_profile_frames extra frame
1 parent 6c592a4 commit a1213eb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/debug/extconf.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99

1010
if RUBY_VERSION >= '3.0.0'
1111
$defs << '-DRB_PROFILE_FRAMES_HAS_C_FRAMES'
12-
end
13-
14-
if RUBY_VERSION >= '3.1.0'
15-
$defs << '-DHAVE_RB_ISEQ_TYPE'
1612

1713
if RUBY_VERSION < '3.2.0'
1814
$defs << '-DRB_PROFILE_FRAMES_HAS_EXTRA_FRAME'
1915
end
2016
end
17+
18+
if RUBY_VERSION >= '3.1.0'
19+
$defs << '-DHAVE_RB_ISEQ_TYPE'
20+
end
2121
else
2222
# not on MRI
2323

0 commit comments

Comments
 (0)