From e084ceb202e3f3977ef1b954a6589cd1ef626974 Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Sun, 16 Jul 2023 01:21:42 -0700 Subject: [PATCH] Only delete the `cmake` flags under Linux With CMake under windows, it appears we need these flags, but not in Linux. --- ext/re2/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/re2/extconf.rb b/ext/re2/extconf.rb index 5ad49eb..e98fc39 100644 --- a/ext/re2/extconf.rb +++ b/ext/re2/extconf.rb @@ -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