method
build_extension
v2_4_6 -
Show latest stable
-
0 notes -
Class: Builder
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378
- 1_9_2_180
- 1_9_3_125
- 1_9_3_392
- 2_1_10 (0)
- 2_2_9 (0)
- 2_4_6 (0)
- 2_5_5 (0)
- 2_6_3 (0)
- What's this?
build_extension(extension, dest_path)
public
Hide source
# File lib/rubygems/ext/builder.rb, line 149 def build_extension extension, dest_path # :nodoc: results = [] extension ||= '' # I wish I knew why this line existed extension_dir = File.expand_path File.join @gem_dir, File.dirname(extension) lib_dir = File.join @spec.full_gem_path, @spec.raw_require_paths.first builder = builder_for extension begin FileUtils.mkdir_p dest_path CHDIR_MUTEX.synchronize do Dir.chdir extension_dir do results = builder.build(extension, @gem_dir, dest_path, results, @build_args, lib_dir) verbose { results.join("\n") } end end write_gem_make_out results.join "\n" rescue => e results << e.message build_error extension_dir, results.join("\n"), $@ end end