From af74ef9003aea86b5325224d491d60a32d270a00 Mon Sep 17 00:00:00 2001 From: Mateusz Krzywicki <35402446+krzyw1x@users.noreply.github.com> Date: Mon, 25 Nov 2024 22:50:08 -0800 Subject: [PATCH] Fix clang compilation issue Fix for build issues with homebrew clang-19 ``` /opt/homebrew/Cellar/llvm/19.1.4/bin/../include/c++/v1/__memory/allocator.h:95:17: error: static assertion failed due to requirement '!is_const::value': std::allocator does not support const types 95 | static_assert(!is_const<_Tp>::value, "std::allocator does not support const types"); | ^~~~~~~~~~~~~~~~~~~~~ ``` You can find description of the problem here: https://stackoverflow.com/questions/21365331/which-is-correct-vectorconst-string-or-const-vectorstring --- arch/arm64/arm64_helpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/arm64_helpers.cpp b/arch/arm64/arm64_helpers.cpp index c886f30..5a8293c 100644 --- a/arch/arm64/arm64_helpers.cpp +++ b/arch/arm64/arm64_helpers.cpp @@ -166,7 +166,7 @@ uint32_t br(Register dst_reg) { } uint32_t b_cond(const std::string &cond, int32_t off) { - static const std::vector condition_codes = { + static const std::vector condition_codes = { "eq", "ne", "cs", "cc", "mi", "pl", "vs", "vc", "hi", "ls", "ge", "lt", "gt", "le", "al", "al" };