Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ext/json/ext/parser/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@

append_cflags("-std=c99")

# Disable function outlining on clang to prevent some of the repeated instructions
# in json_eat_whitespace being outlined into function calls.
# Note: This verifies '-mno-outline' is accepted as a valid compiler flag
# and will not pass it if unsupported.
append_cflags("-mno-outline")

if enable_config('parser-use-simd', default=!ENV["JSON_DISABLE_SIMD"])
load __dir__ + "/../simd/conf.rb"
end
Expand Down
Loading