Permalink
Browse files

Ensure lib/binary is defined prior clearing the requisites for it.

OSX .bundle vs Linux/Windows .so is not funny.
  • Loading branch information...
1 parent 5b50163 commit 3983f372a242198ea21e0db988ed31957a6f2588 @luislavena luislavena committed Jan 4, 2009
Showing with 6 additions and 2 deletions.
  1. +2 −1 History.txt
  2. +4 −1 lib/rake/extensiontask.rb
View
@@ -5,9 +5,10 @@
* Download cross-ruby source code using HTTP instead of FTP.
* Disabled Tcl/Tk extension building on cross-ruby (helps with 1.9).
-* 1 Bug fix:
+* 2 Bug fixes:
* Use proper binary extension on OSX (reported by Dirkjan Bussink).
+ * Ensure lib/binary task is defined prior clear of requisites.
=== 0.3.0 / 2008-12-07
@@ -240,7 +240,10 @@ def define_cross_platform_tasks
task 'compile' => ["compile:#{cross_platform}"]
# clear lib/binary dependencies and trigger cross platform ones
- Rake::Task["#{@lib_dir}/#{binary(cross_platform)}"].prerequisites.clear
+ # check if lib/binary is defined (damn bundle versus so versus dll)
+ if Rake::Task.task_defined?("#{@lib_dir}/#{binary(cross_platform)}") then
+ Rake::Task["#{@lib_dir}/#{binary(cross_platform)}"].prerequisites.clear
+ end
file "#{@lib_dir}/#{binary(cross_platform)}" => ["copy:#{@name}:#{cross_platform}"]
# if everything for native task is in place

0 comments on commit 3983f37

Please sign in to comment.