Skip to content

Commit 0e9ca86

Browse files
committed
Fix MacOS detection on jRuby
1 parent 059198d commit 0e9ca86

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
@@ -9,7 +9,7 @@ module Native
99
spec = Gem.loaded_specs["sassc"]
1010
gem_root = spec.gem_dir
1111

12-
dl_ext = (RUBY_PLATFORM =~ /darwin/ ? 'bundle' : 'so')
12+
dl_ext = (RbConfig::CONFIG['host_os'] =~ /darwin/ ? 'bundle' : 'so')
1313
ffi_lib "#{gem_root}/lib/sassc/libsass.#{dl_ext}"
1414

1515
require_relative "native/sass_value"

0 commit comments

Comments
 (0)