Skip to content

Commit

Permalink
Propagate --cc configure setting to CC, CXX env vars. Closes rubinius…
Browse files Browse the repository at this point in the history
…#520.

The current build system is minimally useful and barely enables non-standard
build configurations. Better support will have to wait until the build system
is rebuilt.
  • Loading branch information
Brian Ford committed Oct 10, 2010
1 parent af26399 commit 6b363a8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Rakefile
Expand Up @@ -48,6 +48,11 @@ unless BUILD_CONFIG[:build_ruby] == build_ruby
exit 1
end

# Set the build compiler to the configured compiler unless
# the compiler is set via CC environment variable.
ENV['CC'] = BUILD_CONFIG[:compiler] unless ENV['CC']
ENV['CXX'] = BUILD_CONFIG[:compiler] unless ENV['CXX']

$dlext = RbConfig::CONFIG["DLEXT"]

task :default => %w[build vm:test] do
Expand Down

0 comments on commit 6b363a8

Please sign in to comment.