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 16, 2023
1 parent 88303ef commit 46112b8
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 46112b8

Please sign in to comment.