Skip to content

Commit

Permalink
Merge pull request #132 from robinst/jv-c++-version
Browse files Browse the repository at this point in the history
Use C++17 for TagLib 2.0
  • Loading branch information
robinst authored Apr 6, 2024
2 parents 223304a + e9ac86d commit 43f06d3
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 @@ -50,5 +50,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 43f06d3

Please sign in to comment.