Skip to content

Commit 523746e

Browse files
authored
Merge pull request #173 from eregon/fix-dlext
Use RbConfig::MAKEFILE_CONFIG['DLEXT'] instead of hardcoding extensions
2 parents 8b6f415 + 28aa5c7 commit 523746e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sassc/native.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module SassC
66
module Native
77
extend FFI::Library
88

9-
dl_ext = (RbConfig::CONFIG['host_os'] =~ /darwin/ ? 'bundle' : 'so')
9+
dl_ext = RbConfig::MAKEFILE_CONFIG['DLEXT']
1010
begin
1111
ffi_lib File.expand_path("libsass.#{dl_ext}", __dir__)
1212
rescue LoadError # Some non-rvm environments don't copy a shared object over to lib/sassc

0 commit comments

Comments
 (0)