Skip to content

Commit 8f8b9f4

Browse files
kevaundrayAztecBot
authored andcommitted
fix: Conditionally compile base64 command for bb binary (#1851)
resolves #1850 # Checklist: Remove the checklist to signal you've completed it. Enable auto-merge if the PR is ready to merge. - [ ] If the pull request requires a cryptography review (e.g. cryptographic algorithm implementations) I have added the 'crypto' tag. - [ ] I have reviewed my diff in github, line by line and removed unexpected formatting changes, testing logs, or commented-out code. - [ ] Every change is related to the PR description. - [ ] I have [linked](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) this pull request to relevant issues (if any exist).
1 parent 2ea7a55 commit 8f8b9f4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cpp/src/barretenberg/bb/get_bytecode.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
*/
77
inline std::vector<uint8_t> get_bytecode(const std::string& bytecodePath)
88
{
9+
// base64 on mac is different from linux
10+
#ifdef __APPLE__
11+
std::string command = "base64 -D -i " + bytecodePath + " | gunzip";
12+
#else
913
std::string command = "base64 -d " + bytecodePath + " | gunzip";
14+
#endif
15+
1016
return exec_pipe(command);
1117
}

0 commit comments

Comments
 (0)