Skip to content

Commit

Permalink
ci: update test-gem-installation to work on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Oct 16, 2022
1 parent 3690ae7 commit 5a5388c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/test-gem-installation
Expand Up @@ -115,7 +115,7 @@ describe gemspec.full_name do
it "has ldflags pointing to the shared object file" do
ldflags = Nokogiri::VERSION_INFO["nokogiri"]["ldflags"]
if ::RUBY_PLATFORM.match?(/mingw|mswin/)
if gemspec.platform.cpu
if gemspec.platform.is_a?(Gem::Platform) && gemspec.platform.cpu
assert_includes(ldflags, "-L#{File.join(nokogiri_lib_dir, ruby_maj_min)}")
else
assert_includes(ldflags, "-L#{nokogiri_lib_dir}")
Expand Down

0 comments on commit 5a5388c

Please sign in to comment.