[#970] fstree: Add build tag to enable generic version on linux

Unless tested, generic version can start gaining bugs. With a separate
build tag we can have the best of both worlds:
1. Use optimized implementation for linux by default.
2. Run tests or benchmarks for both. Note that they are not actually
   run automatically now, but this is at leas possible.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
pull/975/head
Evgenii Stratonikov 2024-02-08 21:07:02 +03:00 committed by Evgenii Stratonikov
parent abd502215f
commit b36a453238
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
//go:build linux
//go:build linux && !fstree_generic
package fstree

View File

@ -1,4 +1,4 @@
//go:build !linux
//go:build !linux || fstree_generic
package fstree