Skip to content

Commit

Permalink
Fix building on older versions of gcc/ubuntu. See #272.
Browse files Browse the repository at this point in the history
  • Loading branch information
cfis committed May 15, 2020
1 parent 58b3563 commit 21cd8d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
@@ -1,5 +1,6 @@
language: ruby
rvm:
- 2.4.10
- 2.5.8
- 2.6.6
- 2.7.1
Expand Down
3 changes: 3 additions & 0 deletions ext/ruby_prof/extconf.rb
Expand Up @@ -3,4 +3,7 @@
# This function was added in Ruby 2.5, so once Ruby 2.4 is no longer supported this can be removed
have_func('rb_tracearg_callee_id', ["ruby.h"])

# We want to intermix declarations and code (ie, don't define all variables at the top of the method)
$CFLAGS += ' -std=c99'

create_makefile("ruby_prof")

0 comments on commit 21cd8d2

Please sign in to comment.