Skip to content

Commit 2e4ea48

Browse files
committed
Alter requisites for compile and native on Windows
Previous definition caused issues when compiling natively since DevKit was not enabled at the proper time. This is caused by ports getting prepend into the dependency list of `compile` task way before than it should have been. This change, while feels like a hack, gets the job done. And I'm making a cup of tea to celebrate it 😄
1 parent 5f28088 commit 2e4ea48

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tasks/native.rake

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ BINARY_VERSION = "3.7.17"
99
URL_VERSION = "3071700"
1010
URL_PATH = "/2013"
1111

12-
# prepend DevKit into compilation phase
13-
if RUBY_PLATFORM =~ /mingw/
14-
task :compile => [:devkit]
15-
task :native => [:devkit]
16-
end
17-
1812
task :devkit do
1913
begin
2014
require "devkit"

tasks/vendor_sqlite3.rake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,9 @@ task :cross do
8585
ENV.delete(var)
8686
end
8787
end
88+
89+
# prepend DevKit into compilation phase
90+
if RUBY_PLATFORM =~ /mingw/
91+
Rake::Task["compile"].prerequisites.unshift "devkit"
92+
Rake::Task["native"].prerequisites.unshift "devkit"
93+
end

0 commit comments

Comments
 (0)