From 92f2676c96382d9d99402b3b05b72b0c3c571b07 Mon Sep 17 00:00:00 2001 From: Mark Dokter Date: Tue, 24 Sep 2024 17:14:44 +0200 Subject: [PATCH] [DAPHNE-#830] Fix duplicate symbol linker issue Compiling with Clang/LLD complains about duplicate symbols of supportBinaryOp --- src/runtime/local/kernels/BinaryOpCode.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runtime/local/kernels/BinaryOpCode.h b/src/runtime/local/kernels/BinaryOpCode.h index 12a2fd35f..775d3af9a 100644 --- a/src/runtime/local/kernels/BinaryOpCode.h +++ b/src/runtime/local/kernels/BinaryOpCode.h @@ -93,7 +93,7 @@ static constexpr bool supportsBinaryOp = false; // simplicity). #define SUPPORT(Op, VT) \ template <> \ - constexpr bool supportsBinaryOp = true; + static constexpr bool supportsBinaryOp = true; // Generates code specifying that all binary operations of a certain category // should be supported on the given value type `VT` (for the result and the two @@ -154,10 +154,10 @@ SUPPORT_NUMERIC_INT(uint64_t) SUPPORT_NUMERIC_INT(uint32_t) SUPPORT_NUMERIC_INT(uint8_t) template <> -constexpr bool supportsBinaryOp = true; template <> -constexpr bool +static constexpr bool supportsBinaryOp = true;