Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions ext/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@

$CXXFLAGS << ' -std=c++11'

# devkit tools aren't usually available on Windows
# use a static build so we won't need a compiler available at runtime
# see: https://github.com/sass/sassc-ruby/issues/182
enable_static_by_default = RUBY_ENGINE == "jruby" && (RbConfig::CONFIG['host_os'] =~ /mswin|windows|mingw/i)
# Set to true when building binary gems
if enable_config('static-stdlib', false)
$LDFLAGS << ' -static-libgcc -static-libstdc++'
if enable_config('static-stdlib', enable_static_by_default)
$LDFLAGS << ' -static'
end

if enable_config('march-tune-native', false)
Expand Down