Skip to content

Commit

Permalink
Output possum.h to go/cpossum
Browse files Browse the repository at this point in the history
Having it local to the Go package means they don't need to fiddle with CGO_CPPFLAGS, and there's no other consumers yet.
  • Loading branch information
anacrolix committed Jan 22, 2024
1 parent 4c6d4e2 commit 81f4c6a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# TODO: Do this in build.rs instead

.PHONY: possum.h
possum.h:
go_possum_h := go/cpossum/possum.h

.PHONY: $(go_possum_h)
$(go_possum_h):
cbindgen --output $@
2 changes: 1 addition & 1 deletion go/cpossum/c-possum.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package possumC

// #cgo LDFLAGS: -lpossum
// #include "../../possum.h"
// #include "possum.h"
import "C"
import (
"errors"
Expand Down
File renamed without changes.

0 comments on commit 81f4c6a

Please sign in to comment.