Skip to content

Commit

Permalink
Add -fno-inline flag when PICORUBY_DEBUG is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
hasumikin committed Mar 12, 2024
1 parent 0615095 commit 7b208f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/picoruby/build.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def picoruby(picoruby_conf = :default)
cc.flags.reject! { |f| %w(-g -O3).include? f }
cc.flags << "-g3"
cc.flags << "-O0"
cc.flags << "-fno-inline"
else
cc.defines << "NDEBUG=1"
end
Expand Down

0 comments on commit 7b208f2

Please sign in to comment.