Skip to content

Commit

Permalink
Fixed substituting RbConfig::CONFIG for cc, c++, cpp.
Browse files Browse the repository at this point in the history
  • Loading branch information
brixen committed May 19, 2016
1 parent 533fbe0 commit 98adcd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/rbconfig.rb
Expand Up @@ -85,9 +85,9 @@ module RbConfig
CONFIG["NROFF"] = "/usr/bin/nroff"
CONFIG["MAKEDIRS"] = "mkdir -p"
# compile tools
CONFIG["CC"] = (ENV["CC"] || Rubinius::BUILD_CONFIG[:cc].sub(/^(gcc|clang)/, "cc")).dup
CONFIG["CXX"] = (ENV["CXX"] || Rubinius::BUILD_CONFIG[:cxx].sub(/^(g|clang)\+\+/, "c++")).dup
CONFIG["CPP"] = "#{(ENV["CPP"] || Rubinius::BUILD_CONFIG[:cc].sub(/^(gcc|clang)/, "cc"))} -E"
CONFIG["CC"] = (ENV["CC"] || Rubinius::BUILD_CONFIG[:cc].sub(/^(gcc|clang).*$/, "cc")).dup
CONFIG["CXX"] = (ENV["CXX"] || Rubinius::BUILD_CONFIG[:cxx].sub(/^(g|clang)\+\+.*$/, "c++")).dup
CONFIG["CPP"] = "#{(ENV["CPP"] || Rubinius::BUILD_CONFIG[:cc].sub(/^(gcc|clang).*$/, "cc"))} -E"
CONFIG["YACC"] = "bison -y"
CONFIG["RANLIB"] = "ranlib"
CONFIG["AR"] = "ar"
Expand Down

0 comments on commit 98adcd1

Please sign in to comment.