Skip to content

Commit 074873c

Browse files
committed
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 <[email protected]>
1 parent 5142c38 commit 074873c

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

cmd/containerd/builtins_btrfs_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build !no_btrfs
1+
// +build !no_btrfs,cgo
22

33
/*
44
Copyright The containerd Authors.

snapshots/btrfs/btrfs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build linux,!no_btrfs
1+
// +build linux,!no_btrfs,cgo
22

33
/*
44
Copyright The containerd Authors.

snapshots/btrfs/btrfs_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build linux,!no_btrfs
1+
// +build linux,!no_btrfs,cgo
22

33
/*
44
Copyright The containerd Authors.

snapshots/btrfs/plugin/plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build linux,!no_btrfs
1+
// +build linux,!no_btrfs,cgo
22

33
/*
44
Copyright The containerd Authors.

0 commit comments

Comments
 (0)