Skip to content

Commit

Permalink
Merge pull request #26 from petaldevelopment/master
Browse files Browse the repository at this point in the history
Issue #25 read the with_config CXX variable
  • Loading branch information
nashby committed Dec 13, 2014
2 parents 605d4f9 + 13c183c commit fbc3b00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/cityhash/extconf.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require 'mkmf'

RbConfig::MAKEFILE_CONFIG['CXX'] = ENV['CXX'] if ENV['CXX']
cxx = ENV['CXX'] || with_config('CXX')
RbConfig::MAKEFILE_CONFIG['CXX'] = cxx if cxx

%w{g O3 Wall march=native}.each do |flag|
flag = "-#{flag}"
Expand Down

0 comments on commit fbc3b00

Please sign in to comment.