Skip to content

Commit

Permalink
test windows: reorder -mms-bitfields
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 15, 2022
1 parent 9d4b318 commit c15660d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/test-pkg-config.rb
Expand Up @@ -183,7 +183,13 @@ def pkg_config(package, *args)
def normalize_pkg_config_result(result)
case RUBY_PLATFORM
when /mingw/
result.gsub(/\/bin\/..\//, "/")
result = result.gsub(/\/bin\/..\//, "/")
if result.include?(" -mms-bitfields ")
# Reorder -mms-bitfields (non path flag)
result = result.gsub(" -mms-bitfields ", "")
result = "-mms-bitfields #{result}"
end
result
else
result
end
Expand Down

0 comments on commit c15660d

Please sign in to comment.