File tree Expand file tree Collapse file tree 4 files changed +12
-3
lines changed Expand file tree Collapse file tree 4 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ package possumC
6
6
// Windows system to get to the point I can actually build this, so I don't know how it works there.
7
7
// Also cgo directives seem to use the old build constraint syntax. Why the fuck isn't this stuff
8
8
// documented?
9
- #cgo !windows,!darwin LDFLAGS: -L${SRCDIR}/../../target/debug - l:libpossum.a -lm
10
- #cgo darwin windows LDFLAGS: -L${SRCDIR}/../../target/debug - lpossum
9
+ #cgo !windows,!darwin LDFLAGS: -l:libpossum.a -lm
10
+ #cgo darwin windows LDFLAGS: -lpossum
11
11
#include "possum.h"
12
12
*/
13
13
import "C"
Original file line number Diff line number Diff line change 1
1
package possumC
2
2
3
3
import (
4
- qt "github.com/go-quicktest/qt"
5
4
"testing"
5
+
6
+ "github.com/go-quicktest/qt"
7
+
8
+ _ "github.com/anacrolix/possum/go/testlink"
6
9
)
7
10
8
11
func TestNoSuchKey (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ package possum
2
2
3
3
import (
4
4
"testing"
5
+
6
+ _ "github.com/anacrolix/possum/go/testlink"
5
7
)
6
8
7
9
func TestOpenClose (t * testing.T ) {
Original file line number Diff line number Diff line change
1
+ package testlink
2
+
3
+ //#cgo LDFLAGS: -L${SRCDIR}/../../target/debug
4
+ import "C"
You can’t perform that action at this time.
0 commit comments