Skip to content

Commit

Permalink
Only delete the cmake flags under Linux
Browse files Browse the repository at this point in the history
With CMake under windows, it appears we need these flags, but not
in Linux.
  • Loading branch information
stanhu committed Jul 17, 2023
1 parent 3a2cc28 commit e084ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/re2/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def process_recipe(name, version)
'-DCMAKE_INSTALL_LIBDIR=lib'
]
recipe.configure_options += cmake_compile_flags(recipe.host)
delete_cmake_generator_option!(recipe.configure_options)
delete_cmake_generator_option!(recipe.configure_options) if RbConfig::CONFIG['host_os'] == 'linux'

yield recipe

Expand Down

0 comments on commit e084ceb

Please sign in to comment.