BuildOptions: check has_option? for universal and 32-bit
This commit is contained in:
parent
cbf0fe6549
commit
26b1b88c97
@ -248,14 +248,14 @@ class BuildOptions
|
||||
|
||||
# True if the user requested a universal build.
|
||||
def universal?
|
||||
@args.include? '--universal'
|
||||
@args.include?('--universal') && has_option?('universal')
|
||||
end
|
||||
|
||||
# Request a 32-bit only build.
|
||||
# This is needed for some use-cases though we prefer to build Universal
|
||||
# when a 32-bit version is needed.
|
||||
def build_32_bit?
|
||||
@args.include? '--32-bit'
|
||||
@args.include?('--32-bit') && has_option?('32-bit')
|
||||
end
|
||||
|
||||
def used_options
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user