Skip to content

Commit

Permalink
fix: Conditionally compile base64 command for bb binary (#1851)
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
kevaundray authored Aug 28, 2023
1 parent 0006dee commit be97185
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
*/
inline std::vector<uint8_t> 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);
}

0 comments on commit be97185

Please sign in to comment.