We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65cd8e1 commit 562a6c1Copy full SHA for 562a6c1
cmd/mkcgo/generate.go
@@ -684,15 +684,7 @@ func getFrameworkPath(dylib mkcgo.Framework) string {
684
685
// needsAssembly checks if assembly trampolines are needed for nocgo mode.
686
func needsAssembly(src *mkcgo.Source) bool {
687
- if dynload() {
688
- return false
689
- }
690
- for _, fn := range src.Funcs {
691
- if !fnCalledFromGo(fn) {
692
- continue
693
694
695
+ return dynamic()
696
}
697
698
// generateNocgoGo generates Go source file for nocgo mode from src.
internal/ossl/zdl.s
@@ -1,6 +1,6 @@
1
// Code generated by mkcgo. DO NOT EDIT.
2
3
-//go:build !cgo
+//go:build !cgo && (unix)
4
5
#include "textflag.h"
6
0 commit comments