Skip to content

Commit b1e9cb5

Browse files
committed
Add -p cflag if $DEBUG is present
1 parent caecdfe commit b1e9cb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/rbs_extension/extconf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
'-Wc++-compat',
1919
]
2020

21-
append_cflags ['-O0', '-g'] if ENV['DEBUG']
21+
append_cflags ['-O0', '-pg'] if ENV['DEBUG']
2222
if ENV["TEST_NO_C23"]
2323
puts "Adding -Wc2x-extensions to CFLAGS"
2424
$CFLAGS << " -Werror -Wc2x-extensions"

0 commit comments

Comments
 (0)