Skip to content

Commit

Permalink
fix build in case building for loongarch already (not yet supported)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 706786560
  • Loading branch information
jan-wassenberg authored and copybara-github committed Dec 16, 2024
1 parent 49674e1 commit 5cde138
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hwy/detect_targets.h
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,13 @@
//------------------------------------------------------------------------------
// Choose targets for dynamic dispatch according to one of four policies

// TODO: remove once HWY_LSX is actually supported
#if HWY_ARCH_LOONGARCH
#undef HWY_COMPILE_ONLY_STATIC
#undef HWY_COMPILE_ONLY_EMU128
#define HWY_COMPILE_ONLY_SCALAR
#endif

#if 1 < (defined(HWY_COMPILE_ONLY_SCALAR) + defined(HWY_COMPILE_ONLY_EMU128) + \
defined(HWY_COMPILE_ONLY_STATIC))
#error "Can only define one of HWY_COMPILE_ONLY_{SCALAR|EMU128|STATIC} - bug?"
Expand Down

0 comments on commit 5cde138

Please sign in to comment.