Skip to content

Commit

Permalink
[DAPHNE-daphne-eu#830] Fix duplicate symbol linker issue
Browse files Browse the repository at this point in the history
Compiling with Clang/LLD complains about duplicate symbols of supportBinaryOp
  • Loading branch information
corepointer committed Sep 24, 2024
1 parent ed2e2a1 commit 92f2676
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/runtime/local/kernels/BinaryOpCode.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static constexpr bool supportsBinaryOp = false;
// simplicity).
#define SUPPORT(Op, VT) \
template <> \
constexpr bool supportsBinaryOp<BinaryOpCode::Op, VT, VT, VT> = true;
static constexpr bool supportsBinaryOp<BinaryOpCode::Op, VT, VT, VT> = 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
Expand Down Expand Up @@ -154,10 +154,10 @@ SUPPORT_NUMERIC_INT(uint64_t)
SUPPORT_NUMERIC_INT(uint32_t)
SUPPORT_NUMERIC_INT(uint8_t)
template <>
constexpr bool supportsBinaryOp<BinaryOpCode::CONCAT, const char *,
static constexpr bool supportsBinaryOp<BinaryOpCode::CONCAT, const char *,
const char *, const char *> = true;
template <>
constexpr bool
static constexpr bool
supportsBinaryOp<BinaryOpCode::EQ, int64_t, const char *, const char *> =
true;

Expand Down

0 comments on commit 92f2676

Please sign in to comment.