ext/nokogiri/extconf.rb
# When using rake-compiler-dock on Windows, the underlying Virtualbox shared
# folders don't support symlinks, but libiconv expects it for a build on
# Linux. We work around this limitation by using the temp dir for cooking.
When using rake-compiler-dock on Windows, the underlying Virtualbox shared
folders don't support symlinks, but libiconv expects it for a build on
Linux. We work around this limitation by using the temp dir for cooking.
When using rake - compiler - dock on Windows the underlying Virtualbox shared folders don ' t support symlinks but libiconv expects it for a build on Linux . We work around this limitation by using the temp dir for cooking .
def chdir_for_build
  build_dir = ENV['RCD_HOST_RUBY_PLATFORM'].to_s =~ /mingw|mswin|cygwin/ ? '/tmp' : '.'
  Dir.chdir(build_dir) do
    yield
  end
end
def chdir_for_build build_dir = ENV [ 'RCD_HOST_RUBY_PLATFORM' ] . to_s =~ / mingw|mswin|cygwin / ? '/tmp' : '.' Dir . chdir ( build_dir ) do yield end end
When using rake-compiler-dock on Windows, the underlying Virtualbox shared
folders don't support symlinks, but libiconv expects it for a build on
Linux.
When using rake - compiler - dock on Windows the underlying Virtualbox shared folders don ' t support symlinks but libiconv expects it for a build on Linux .