this repo has no description
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix cgo build following arch #1

open opened by fabricio.dev targeting main from fabricio.dev/blup: fix/go-build

The build on Mac were failing (if not using cgo) because go looked to ".c" files and figure that you may need cgo, which is actually only used for linux.

$ make build          
go build -o ./blup ./cmd/blup
package tangled.org/evan.jarrett.net/blup/cmd/blup
        imports tangled.org/evan.jarrett.net/blup/internal/clipboard: C source files not allowed when not using cgo or SWIG: clipboard_wayland.c wlr-data-control.c xdg-shell.c
make: *** [build] Error 1

Adding the directive //go:build linux in head to the .c files is enough to solve it. Another solution would be rename some files to _linux but I dont want to be renaming the files

Signed-off-by: Fabricio Silva hi@fabricio.dev

Labels

None yet.

Participants 1
AT URI
at://did:plc:rlkxmeu3fevpzevkduvphfet/sh.tangled.repo.pull/3mlfpornifv22
+3
Diff #0
+1
internal/clipboard/clipboard_wayland.c
··· 1 + //go:build linux 1 2 /* 2 3 * Native Wayland clipboard implementation 3 4 * Supports both wlr-data-control (preferred) and popup surface hack (fallback)
+1
internal/clipboard/wlr-data-control.c
··· 1 + //go:build linux 1 2 /* Generated by wayland-scanner 1.24.0 */ 2 3 3 4 /*
+1
internal/clipboard/xdg-shell.c
··· 1 + //go:build linux 1 2 /* Generated by wayland-scanner 1.24.0 */ 2 3 3 4 /*

History

1 round 0 comments
sign up or login to add to the discussion
fabricio.dev submitted #0
1 commit
expand
fix cgo build following arch
merge conflicts detected
expand
  • internal/clipboard/clipboard_wayland.c:1
  • internal/clipboard/wlr-data-control.c:1
  • internal/clipboard/xdg-shell.c:1
expand 0 comments