Skip to content

Commit

Permalink
Use C++17 for TagLib 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobvosmaer committed Mar 24, 2024
1 parent 189fa6b commit e9ac86d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ext/extconf_common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,10 @@ def error(msg)

$CFLAGS << ' -DSWIG_TYPE_TABLE=taglib'

# TagLib 2.0 requires C++17. Some compilers default to an older standard
# so we add this '-std=' option to make sure the compiler accepts C++17
# code.
$CXXFLAGS << ' -std=c++17'

# Allow users to override the Ruby runtime's preferred CXX
RbConfig::MAKEFILE_CONFIG['CXX'] = ENV['TAGLIB_RUBY_CXX'] if ENV['TAGLIB_RUBY_CXX']

0 comments on commit e9ac86d

Please sign in to comment.