mirror of
https://github.com/JayDDee/cpuminer-opt.git
synced 2025-09-17 23:44:27 +00:00
Updated Compiling from source (markdown)
@@ -82,17 +82,23 @@ If Xcode is installed this is probably not necessary. Using Xcode to build cpumi
|
||||
|
||||
#### Homebrew package manager
|
||||
|
||||
Install Homebrew from https://brew.sh/. Use Homebrew to install missing packages including GCC. On x86_64 CPUs replace `aarch64` with `x86_64` in targeted packages.
|
||||
Install Homebrew from https://brew.sh/. Use Homebrew to install missing packages.
|
||||
|
||||
`% brew install aarch64-elf-binutils aarch64-elf-gcc gcc autoconf automake ca-certificates gettext gmp isl jansson libmpc libunistring lz4 m4 mpfr pcre2 zstd`
|
||||
Homebrew may compile some packages from source which can take a long time.
|
||||
|
||||
Homebrew may compile some packages from source which can take a long time.
|
||||
####ARM64:
|
||||
|
||||
`% brew install aarch64-elf-binutils autoconf automake ca-certificates gettext gmp isl jansson libmpc libunistring lz4 m4 mpfr pcre2 zstd`
|
||||
|
||||
cpuminer-opt can now be compiled on MacOS ARM64 with the default Clang compiler. See Compiling cpuminer-opt below.
|
||||
|
||||
#### x64_64 use GCC
|
||||
####x86_64:
|
||||
|
||||
x86_64 CPUs must be compiled using GCC. Continue to change the compiler to GCC. Do not use GCC on ARM64, it won't work.
|
||||
x86_64 CPUs must be compiled using GCC.
|
||||
|
||||
`% brew install x86_64-elf-binutils x86_64-elf-gcc gcc autoconf automake ca-certificates gettext gmp isl jansson libmpc libunistring lz4 m4 mpfr pcre2 zstd`
|
||||
|
||||
Change the default compiler to GCC. Do not use GCC on ARM64, it won't work.
|
||||
|
||||
There are many tutorials available on how to switch compilers, some methods are temporary and others are more persistent.
|
||||
The following will work for the existing terminal session.
|
||||
|
Reference in New Issue
Block a user