Skip to content

Commit

Permalink
Merge pull request #473 from gofractally/fix-arm-builds
Browse files Browse the repository at this point in the history
fix arm builds
  • Loading branch information
James-Mart authored Aug 10, 2023
2 parents 0d9c79b + 1809e96 commit e15bb01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/psibase_http/jwt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ namespace psibase::http
{
std::array<char, 64> result = {};
auto pos = result.begin();
pos = std::ranges::copy(std::ranges::views::iota('A', 'Z' + 1), pos).out;
pos = std::ranges::copy(std::ranges::views::iota('a', 'z' + 1), pos).out;
pos = std::ranges::copy(std::ranges::views::iota('0', '9' + 1), pos).out;
pos = std::ranges::copy(std::ranges::views::iota('A', static_cast<char>('Z' + 1)), pos).out;
pos = std::ranges::copy(std::ranges::views::iota('a', static_cast<char>('z' + 1)), pos).out;
pos = std::ranges::copy(std::ranges::views::iota('0', static_cast<char>('9' + 1)), pos).out;
*pos++ = '-';
*pos++ = '_';
if (pos != result.end())
Expand Down
2 changes: 2 additions & 0 deletions programs/psitest/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,15 @@ struct vm_options
static constexpr std::uint32_t max_stack_bytes = 1024 * 1024;
};

#ifdef __x86_64__
template <>
void eosio::vm::machine_code_writer<eosio::vm::jit_execution_context<callbacks, true>,
true>::on_unreachable()
{
backtrace();
eosio::vm::throw_<wasm_interpreter_exception>("unreachable");
}
#endif

using backend_t = eosio::vm::backend< //
rhf_t,
Expand Down

0 comments on commit e15bb01

Please sign in to comment.