Skip to content

Commit 993bcdf

Browse files
committed
Stop invoking templates action implicitly
To avoid unexpected adding activseupport to compile environment.
1 parent 856b995 commit 993bcdf

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Rakefile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ rule ".c" => ".re" do |t|
3434
puts "⚠️⚠️⚠️ #{t.name} is older than #{t.source}. You may need to run `rake lexer` ⚠️⚠️⚠️"
3535
end
3636

37+
rule %r{^src/(.*)\.c} => 'templates/%X.c.erb' do |t|
38+
puts "⚠️⚠️⚠️ #{t.name} is older than #{t.source}. You may need to run `rake templates` ⚠️⚠️⚠️"
39+
end
40+
rule %r{^include/(.*)\.c} => 'templates/%X.c.erb' do |t|
41+
puts "⚠️⚠️⚠️ #{t.name} is older than #{t.source}. You may need to run `rake templates` ⚠️⚠️⚠️"
42+
end
43+
3744
task :annotate do
3845
sh "bin/generate_docs.sh"
3946
end
@@ -51,7 +58,10 @@ task :templates do
5158
end
5259

5360
task :compile => "ext/rbs_extension/lexer.c"
54-
Rake::Task[:compile].prereqs.prepend :templates
61+
task :compile => "include/rbs/constants.h"
62+
task :compile => "include/rbs/ruby_objs.h"
63+
task :compile => "src/constants.c"
64+
task :compile => "src/ruby_objs.c"
5565

5666
task :test_doc do
5767
files = Dir.chdir(File.expand_path('..', __FILE__)) do

0 commit comments

Comments
 (0)