Skip to content

Commit

Permalink
allow --build to be ommited from configure args
Browse files Browse the repository at this point in the history
  • Loading branch information
chouquette committed Dec 20, 2024
1 parent d143d77 commit 1920385
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/omnibus/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ def configure(*args)
# arrive at differently terrible wild ass guesses for what MSYSTEM=MINGW64
# means. This can be anything from x86_64-pc-mingw64 to i686-pc-mingw32
# which doesn't even make any sense...
if windows?
no_force_build = options.delete(:no_build_triplet) || false
if windows? && !no_force_build
platform = windows_arch_i386? ? "i686-w64-mingw32" : "x86_64-w64-mingw32"
configure_cmd << "--build=#{platform}"
end
Expand Down

0 comments on commit 1920385

Please sign in to comment.