Changeset 69 in code for trunk/vendor/golang.org/x/sys/unix/mkall.sh
- Timestamp:
- Sep 13, 2023, 10:49:50 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/vendor/golang.org/x/sys/unix/mkall.sh
r67 r69 74 74 mkerrors="$mkerrors -m64" 75 75 mktypes="GOARCH=$GOARCH go tool cgo -godefs" 76 mkasm="go run mkasm _darwin.go"76 mkasm="go run mkasm.go" 77 77 ;; 78 78 darwin_arm64) 79 79 mkerrors="$mkerrors -m64" 80 80 mktypes="GOARCH=$GOARCH go tool cgo -godefs" 81 mkasm="go run mkasm _darwin.go"81 mkasm="go run mkasm.go" 82 82 ;; 83 83 dragonfly_amd64) … … 143 143 ;; 144 144 openbsd_386) 145 mkasm="go run mkasm.go" 145 146 mkerrors="$mkerrors -m32" 146 mksyscall="go run mksyscall.go -l32 -openbsd" 147 mksyscall="go run mksyscall.go -l32 -openbsd -libc" 148 mksysctl="go run mksysctl_openbsd.go" 149 mktypes="GOARCH=$GOARCH go tool cgo -godefs" 150 ;; 151 openbsd_amd64) 152 mkasm="go run mkasm.go" 153 mkerrors="$mkerrors -m64" 154 mksyscall="go run mksyscall.go -openbsd -libc" 155 mksysctl="go run mksysctl_openbsd.go" 156 mktypes="GOARCH=$GOARCH go tool cgo -godefs" 157 ;; 158 openbsd_arm) 159 mkasm="go run mkasm.go" 160 mkerrors="$mkerrors" 161 mksyscall="go run mksyscall.go -l32 -openbsd -arm -libc" 162 mksysctl="go run mksysctl_openbsd.go" 163 # Let the type of C char be signed for making the bare syscall 164 # API consistent across platforms. 165 mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" 166 ;; 167 openbsd_arm64) 168 mkasm="go run mkasm.go" 169 mkerrors="$mkerrors -m64" 170 mksyscall="go run mksyscall.go -openbsd -libc" 171 mksysctl="go run mksysctl_openbsd.go" 172 # Let the type of C char be signed for making the bare syscall 173 # API consistent across platforms. 174 mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" 175 ;; 176 openbsd_mips64) 177 mkerrors="$mkerrors -m64" 178 mksyscall="go run mksyscall.go -openbsd" 147 179 mksysctl="go run mksysctl_openbsd.go" 148 180 mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'" 149 mktypes="GOARCH=$GOARCH go tool cgo -godefs" 150 ;; 151 openbsd_amd64) 152 mkerrors="$mkerrors -m64" 153 mksyscall="go run mksyscall.go -openbsd" 154 mksysctl="go run mksysctl_openbsd.go" 155 mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'" 156 mktypes="GOARCH=$GOARCH go tool cgo -godefs" 157 ;; 158 openbsd_arm) 159 mkerrors="$mkerrors" 160 mksyscall="go run mksyscall.go -l32 -openbsd -arm" 161 mksysctl="go run mksysctl_openbsd.go" 162 mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'" 163 # Let the type of C char be signed for making the bare syscall 164 # API consistent across platforms. 165 mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" 166 ;; 167 openbsd_arm64) 168 mkerrors="$mkerrors -m64" 169 mksyscall="go run mksyscall.go -openbsd" 170 mksysctl="go run mksysctl_openbsd.go" 171 mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'" 172 # Let the type of C char be signed for making the bare syscall 173 # API consistent across platforms. 174 mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" 175 ;; 176 openbsd_mips64) 177 mkerrors="$mkerrors -m64" 178 mksyscall="go run mksyscall.go -openbsd" 179 mksysctl="go run mksysctl_openbsd.go" 180 mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'" 181 # Let the type of C char be signed for making the bare syscall 182 # API consistent across platforms. 183 mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" 184 ;; 185 openbsd_ppc64) 186 mkasm="go run mkasm.go" 187 mkerrors="$mkerrors -m64" 188 mksyscall="go run mksyscall.go -openbsd -libc" 189 mksysctl="go run mksysctl_openbsd.go" 190 # Let the type of C char be signed for making the bare syscall 191 # API consistent across platforms. 192 mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" 193 ;; 194 openbsd_riscv64) 195 mkasm="go run mkasm.go" 196 mkerrors="$mkerrors -m64" 197 mksyscall="go run mksyscall.go -openbsd -libc" 198 mksysctl="go run mksysctl_openbsd.go" 181 199 # Let the type of C char be signed for making the bare syscall 182 200 # API consistent across platforms. … … 215 233 # aix/ppc64 script generates files instead of writing to stdin. 216 234 echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in && gofmt -w zsyscall_$GOOSARCH.go && gofmt -w zsyscall_"$GOOSARCH"_gccgo.go && gofmt -w zsyscall_"$GOOSARCH"_gc.go " ; 217 elif [ "$GOOS" == "darwin" ]; then218 # 1.12 and later, syscalls via libSystem219 echo "$mksyscall -tags $GOOS,$GOARCH,go1.12 $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go";220 # 1.13 and later, syscalls via libSystem (including syscallPtr)221 echo "$mksyscall -tags $GOOS,$GOARCH,go1.13 syscall_darwin.1_13.go |gofmt >zsyscall_$GOOSARCH.1_13.go";222 235 elif [ "$GOOS" == "illumos" ]; then 223 236 # illumos code generation requires a --illumos switch … … 233 246 if [ -n "$mksysnum" ]; then echo "$mksysnum |gofmt >zsysnum_$GOOSARCH.go"; fi 234 247 if [ -n "$mktypes" ]; then echo "$mktypes types_$GOOS.go | go run mkpost.go > ztypes_$GOOSARCH.go"; fi 235 if [ -n "$mkasm" ]; then echo "$mkasm $GO ARCH"; fi248 if [ -n "$mkasm" ]; then echo "$mkasm $GOOS $GOARCH"; fi 236 249 ) | $run
Note:
See TracChangeset
for help on using the changeset viewer.