Sha256: 5cf8f2966c2c7a287f01a26a6b404d03ba2b1fb92fb6eac2ee47f543bccfe885

Contents?: true

Size: 737 Bytes

Versions: 6

Compression:

Stored size: 737 Bytes

Contents

# TODO Decide what to do with this.
#

# Note: This is handled toplevel to not confuse compilers.
#
failed = 0

begin
  require File.expand_path '../performant', __FILE__
rescue LoadError => e
  failed += 1
  
  # Have Makefile built.
  #
  require File.expand_path '../extconf', __FILE__
  
  # Run make.
  #
  puts %x(make)
  
  # Try again.
  #
  retry if failed < 2
  
  # Give up and inform the user.
  #
  puts <<-NOTE

Picky tried to compile its source on your system but failed.
Please add an issue: https://github.com/floere/picky/issues/
and copy anything into it that you think is helpful. Thanks!

See related issue: https://github.com/floere/picky/issues/81

The problem reported by the compiler was:
#{e}

NOTE
  exit 1
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
picky-4.6.0 lib/maybe_compile.rb
picky-4.5.12 lib/maybe_compile.rb
picky-4.5.11 lib/maybe_compile.rb
picky-4.5.10 lib/maybe_compile.rb
picky-4.5.9 lib/maybe_compile.rb
picky-4.5.8 lib/maybe_compile.rb