From d7ad9905629b3b4c12be80700886afdce9f9ba9d Mon Sep 17 00:00:00 2001 From: kevaundray Date: Mon, 28 Aug 2023 23:26:00 +0000 Subject: [PATCH] conditionally compile for apple --- .../barretenberg/cpp/src/barretenberg/bb/get_bytecode.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/circuits/cpp/barretenberg/cpp/src/barretenberg/bb/get_bytecode.hpp b/circuits/cpp/barretenberg/cpp/src/barretenberg/bb/get_bytecode.hpp index 61de3910974..755dca2a118 100644 --- a/circuits/cpp/barretenberg/cpp/src/barretenberg/bb/get_bytecode.hpp +++ b/circuits/cpp/barretenberg/cpp/src/barretenberg/bb/get_bytecode.hpp @@ -6,6 +6,12 @@ */ inline std::vector get_bytecode(const std::string& bytecodePath) { +// base64 on mac is different from linux +#ifdef __APPLE__ + std::string command = "base64 -D -i " + bytecodePath + " | gunzip"; +#else std::string command = "base64 -d " + bytecodePath + " | gunzip"; +#endif + return exec_pipe(command); } \ No newline at end of file