Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The Makefile generated by extconf.rb has changed in Ruby 3.0. Therefore, when using Ruby 3.0, the optimization flags are not set properly and it reduced the performance. This patch will set optimization flags in compiling properly. Here is Ruby 2.7 Makefile result ``` CXXFLAGS = $(CCDLFLAGS) -g -O2 -std=c++1z -Wno-register $(ARCH_FLAG) ``` Here is Ruby 3.0 Makefile ``` CXXFLAGS = $(CCDLFLAGS) -std=c++1z -Wno-register $(ARCH_FLAG) ``` This PR will fix anilmaurya#20 issue.
- Loading branch information