Top Level Namespace
Defined Under Namespace
Modules: StaticEmbeddings
Constant Summary collapse
- MINIMUM_RUBY_VERSION =
Gem::Version.new("3.1.0")
Instance Method Summary collapse
Instance Method Details
#drop_unsupported_ruby_warnflags ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'ext/static_embeddings/extconf.rb', line 3 def drop_unsupported_ruby_warnflags return if RbConfig::CONFIG["CC"].to_s.include?("clang") flags = %w[ -Wno-self-assign -Wno-parentheses-equality -Wno-constant-logical-operand ] [RbConfig::CONFIG, RbConfig::MAKEFILE_CONFIG].each do |config| warnflags = config["warnflags"].to_s.split config["warnflags"] = (warnflags - flags).join(" ") end end |