Skip to content

Commit 7c34e4b

Browse files
committed
Check for SSSE3 instructions.
These are needed for Homebrew on Linux x86_64.
1 parent 2d71360 commit 7c34e4b

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
#
99
# Note: @Homebrew/plc does not have write-access to this repository, and therefore cannot be listed in this file.
1010

11-
docs/Support-Tiers.md @Homebrew/tsc @MikeMcQuaid
11+
docs/Support-Tiers.md @Homebrew/lead-maintainers @MikeMcQuaid

Library/Homebrew/brew.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,15 @@ then
654654
# Some Git versions are too old for some Homebrew functionality we rely on.
655655
HOMEBREW_MINIMUM_GIT_VERSION="2.14.3"
656656
else
657+
if [[ -r "/proc/cpuinfo" ]] &&
658+
[[ "${HOMEBREW_PROCESSOR}" == "x86_64" ]]
659+
then
660+
if ! grep -E "^(flags|Features)" /proc/cpuinfo | grep -q "ssse3"
661+
then
662+
odie "Homebrew's x86_64 support on Linux requires a CPU with SSSE3 support!"
663+
fi
664+
fi
665+
657666
HOMEBREW_PRODUCT="${HOMEBREW_SYSTEM}brew"
658667
# Don't try to follow /etc/os-release
659668
# shellcheck disable=SC1091,SC2154

docs/Support-Tiers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ To qualify as Tier 1, a Linux configuration must meet all of the following:
4646
- Using a system `glibc` version ≥ 2.35
4747
- Using a Linux kernel version ≥ 3.2
4848
- Installed in the default prefix: `/home/linuxbrew/.linuxbrew`
49-
- Using a supported architecture (ARM64/AArch64 or Intel x86_64)
49+
- Using a supported architecture (ARM64/AArch64 or Intel x86_64 with SSSE3 support)
5050
- Not building official packages from source (i.e. using bottles)
5151
- Running with `sudo` access available
5252

0 commit comments

Comments
 (0)