We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ada124c commit 39f7fa8Copy full SHA for 39f7fa8
Rakefile
@@ -14,11 +14,16 @@ end
14
# Ruby Extension
15
# ==========================================================
16
17
-require 'rake/extensiontask'
18
-Rake::ExtensionTask.new('stackprof', GEMSPEC) do |ext|
19
- ext.lib_dir = 'lib/stackprof'
+begin
+ require 'rake/extensiontask'
+ Rake::ExtensionTask.new('stackprof', GEMSPEC) do |ext|
20
+ ext.lib_dir = 'lib/stackprof'
21
+ end
22
+ task :build => :compile
23
+rescue LoadError => e
24
+ # rake-compiler not installed. No problem if on CI.
25
+ raise e unless ENV["TRAVIS"]
26
end
-task :build => :compile
27
28
29
# Testing
0 commit comments