Skip to content

Commit

Permalink
Add support for extra options with space
Browse files Browse the repository at this point in the history
GitHub: fix GH-215

Reported by Jun Aruga. Thanks!!!
  • Loading branch information
kou committed May 25, 2023
1 parent 7fa360a commit 8a830fa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/rake/extensiontask.rb
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def define_compile_tasks(for_platform = nil, ruby_ver = RUBY_VERSION)
abs_extconf = (Pathname.new(Dir.pwd) + extconf).realpath

# now add the extconf script
cmd << abs_extconf.relative_path_from(abs_tmp_path)
cmd << abs_extconf.relative_path_from(abs_tmp_path).to_s

# fake.rb will be present if we are cross compiling
if t.prerequisites.include?("#{tmp_path}/fake.rb") then
Expand All @@ -215,9 +215,7 @@ def define_compile_tasks(for_platform = nil, ruby_ver = RUBY_VERSION)
end

chdir tmp_path do
# FIXME: Rake is broken for multiple arguments system() calls.
# Add current directory to the search path of Ruby
sh cmd.join(' ')
sh *cmd
end
end

Expand Down

0 comments on commit 8a830fa

Please sign in to comment.