Skip to content

Instantly share code, notes, and snippets.

@jmroot
Created October 7, 2023 13:34
Show Gist options
  • Select an option

  • Save jmroot/a416f21341d3198991d9d8c70fb9e626 to your computer and use it in GitHub Desktop.

Select an option

Save jmroot/a416f21341d3198991d9d8c70fb9e626 to your computer and use it in GitHub Desktop.
sse4 check
if {[catch {sysctl hw.optional.sse4_1} result] || $result == 0}]} {
depends_run-append port:whatever-installs-old-adb
notes-append "The current version of adb requires SSE 4.1, which is not\
supported by your CPU. An older version is provided at /path/to/adb"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment