Skip to content
Browse files

#2. Add some comments explaining reasoning.

  • Loading branch information...
1 parent 5c4d95d commit 6524852874b4e43adc67629ce8ada240164c3ea3 @hone hone committed Oct 16, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/language_pack/ruby.rb
View
2 lib/language_pack/ruby.rb
@@ -161,6 +161,8 @@ def build_bundler
yaml_include = File.expand_path("#{libyaml_dir}/include")
yaml_lib = File.expand_path("#{libyaml_dir}/lib")
pwd = run("pwd").chomp
+ # we need to set BUNDLE_CONFIG and BUNDLE_GEMFILE for
+ # codon since it uses bundler.
env_vars = "env BUNDLE_GEMFILE=#{pwd}/Gemfile BUNDLE_CONFIG=#{pwd}/.bundle/config CPATH=#{yaml_include}:$CPATH CPPATH=#{yaml_include}:$CPPATH LIBRARY_PATH=#{yaml_lib}:$LIBRARY_PATH"
puts "Running: #{bundle_command}"
pipe("#{env_vars} #{bundle_command} --no-clean 2>&1")

0 comments on commit 6524852

Please sign in to comment.
Something went wrong with that request. Please try again.