[#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
parent
abd502215f
commit
b36a453238
|
@ -1,4 +1,4 @@
|
|||
//go:build linux
|
||||
//go:build linux && !fstree_generic
|
||||
|
||||
package fstree
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
//go:build !linux
|
||||
//go:build !linux || fstree_generic
|
||||
|
||||
package fstree
|
||||
|
||||
|
|
Loading…
Reference in New Issue