From 1ba2134824f6ffa128fe0f452f1f052c3a19cc4c Mon Sep 17 00:00:00 2001 From: Ilia Zavidnyi <45592678+zavidnyi@users.noreply.github.com> Date: Thu, 28 Apr 2022 21:23:35 +0200 Subject: [PATCH] Adding help for M1 Max users By default its not possible to build on Mac M1, so you need to replace ```-march=native``` clang arguments with ```-mcpu=apple-a12``` --- docs/compile.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/compile.md b/docs/compile.md index aceeb8a..6f866a6 100644 --- a/docs/compile.md +++ b/docs/compile.md @@ -30,6 +30,11 @@ The software is likely to compile and work properly on most Linux systems. It sh cmake --build . --target lite-client ``` +If running on M1 Mac run the following command: +``` +grep -rl 'march=native' . | LC_ALL=C xargs sed -i '' 's/march=native/mcpu=apple-a12/g' +``` + Download the newest configuration file from https://newton-blockchain.github.io/global.config.json for mainnet: ```