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.
2 parents c8bb3e3 + e68fec2 commit ba5a228Copy full SHA for ba5a228
lib/sassc/native.rb
@@ -7,7 +7,11 @@ module Native
7
extend FFI::Library
8
9
dl_ext = (RbConfig::CONFIG['host_os'] =~ /darwin/ ? 'bundle' : 'so')
10
- ffi_lib File.expand_path("libsass.#{dl_ext}", __dir__)
+ begin
11
+ ffi_lib File.expand_path("libsass.#{dl_ext}", __dir__)
12
+ rescue LoadError # Some non-rvm environments don't copy a shared object over to lib/sassc
13
+ ffi_lib File.expand_path("libsass.#{dl_ext}", "#{__dir__}/../../ext")
14
+ end
15
16
require_relative "native/sass_value"
17
0 commit comments