Add cgo tag to btrfs plugin

btrfs plugin needs CGO support. However on riscv64, cgo
is only support on go1.16 (not released yet).
Instead of setting no_btrfs manually, adding a cgo tag tells
the compiler to skip it automatically.

Signed-off-by: Shengjing Zhu <zhsj@debian.org>
This commit is contained in:
Shengjing Zhu 2021-01-23 01:26:42 +08:00
parent 5142c38421
commit 074873c68e
4 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
// +build !no_btrfs
// +build !no_btrfs,cgo
/*
Copyright The containerd Authors.

View File

@ -1,4 +1,4 @@
// +build linux,!no_btrfs
// +build linux,!no_btrfs,cgo
/*
Copyright The containerd Authors.

View File

@ -1,4 +1,4 @@
// +build linux,!no_btrfs
// +build linux,!no_btrfs,cgo
/*
Copyright The containerd Authors.

View File

@ -1,4 +1,4 @@
// +build linux,!no_btrfs
// +build linux,!no_btrfs,cgo
/*
Copyright The containerd Authors.