Skip to content

Commit

Permalink
Add cgo tag to btrfs plugin
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
zhsj committed Jan 22, 2021
1 parent 5142c38 commit 074873c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/containerd/builtins_btrfs_linux.go
@@ -1,4 +1,4 @@
// +build !no_btrfs
// +build !no_btrfs,cgo

/*
Copyright The containerd Authors.
Expand Down
2 changes: 1 addition & 1 deletion snapshots/btrfs/btrfs.go
@@ -1,4 +1,4 @@
// +build linux,!no_btrfs
// +build linux,!no_btrfs,cgo

/*
Copyright The containerd Authors.
Expand Down
2 changes: 1 addition & 1 deletion snapshots/btrfs/btrfs_test.go
@@ -1,4 +1,4 @@
// +build linux,!no_btrfs
// +build linux,!no_btrfs,cgo

/*
Copyright The containerd Authors.
Expand Down
2 changes: 1 addition & 1 deletion snapshots/btrfs/plugin/plugin.go
@@ -1,4 +1,4 @@
// +build linux,!no_btrfs
// +build linux,!no_btrfs,cgo

/*
Copyright The containerd Authors.
Expand Down

0 comments on commit 074873c

Please sign in to comment.