Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
734defb1
Unverified
Commit
734defb1
authored
May 10, 2021
by
Carlo Cabrera
Committed by
GitHub
May 10, 2021
Browse files
Merge pull request #11352 from carlocab/custom-arch
extend/ENV/super: allow bottles with custom architectures
parents
c09e48e0
e893f167
Changes
2
Hide whitespace changes
Inline
Side-by-side
Library/Homebrew/extend/ENV/super.rb
View file @
734defb1
...
...
@@ -261,6 +261,9 @@ module Superenv
sig
{
returns
(
String
)
}
def
determine_optflags
Hardware
::
CPU
.
optimization_flags
.
fetch
(
effective_arch
)
rescue
KeyError
odebug
"Building a bottle for custom architecture (
#{
effective_arch
}
)..."
Hardware
::
CPU
.
arch_flag
(
effective_arch
)
end
sig
{
returns
(
String
)
}
...
...
Library/Homebrew/formula_installer.rb
View file @
734defb1
...
...
@@ -395,10 +395,6 @@ class FormulaInstaller
return
if
only_deps?
if
build_bottle?
&&
(
arch
=
@bottle_arch
)
&&
Hardware
::
CPU
.
optimization_flags
.
exclude?
(
arch
.
to_sym
)
raise
CannotInstallFormulaError
,
"Unrecognized architecture for --bottle-arch:
#{
arch
}
"
end
formula
.
deprecated_flags
.
each
do
|
deprecated_option
|
old_flag
=
deprecated_option
.
old_flag
new_flag
=
deprecated_option
.
current_flag
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment