Skip to content

Commit

Permalink
Use File::PATH_SEPARATOR instead of : to fix Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
stanhu authored and mudge committed Jul 17, 2023
1 parent 963d118 commit d69f66e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/re2/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,9 @@ def build_with_vendored_libraries
pkg_config_paths = [
"#{abseil_recipe.path}/lib/pkgconfig",
"#{re2_recipe.path}/lib/pkgconfig"
].join(':')
].join(File::PATH_SEPARATOR)

pkg_config_paths = "#{ENV['PKG_CONFIG_PATH']}:#{pkg_config_paths}" if ENV['PKG_CONFIG_PATH']
pkg_config_paths = "#{ENV['PKG_CONFIG_PATH']}#{File::PATH_SEPARATOR}#{pkg_config_paths}" if ENV['PKG_CONFIG_PATH']

ENV['PKG_CONFIG_PATH'] = pkg_config_paths
pc_file = File.join(re2_recipe.path, 'lib', 'pkgconfig', 're2.pc')
Expand Down

0 comments on commit d69f66e

Please sign in to comment.