Skip to content

Commit 5f78ec4

Browse files
committed
bring back old net
1 parent 549bab3 commit 5f78ec4

File tree

6 files changed

+623
-27
lines changed

6 files changed

+623
-27
lines changed

.gitmodules

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
[submodule "lib/nrfx"]
2-
path = lib/nrfx
3-
url = https://github.com/NordicSemiconductor/nrfx.git
2+
path = lib/nrfx
3+
url = https://github.com/NordicSemiconductor/nrfx.git
44
[submodule "lib/CMSIS"]
5-
path = lib/CMSIS
6-
url = https://github.com/ARM-software/CMSIS.git
5+
path = lib/CMSIS
6+
url = https://github.com/ARM-software/CMSIS.git
77
[submodule "lib/avr"]
8-
path = lib/avr
9-
url = https://github.com/avr-rust/avr-mcu.git
8+
path = lib/avr
9+
url = https://github.com/avr-rust/avr-mcu.git
1010
[submodule "lib/cmsis-svd"]
11-
path = lib/cmsis-svd
12-
url = https://github.com/cmsis-svd/cmsis-svd-data.git
13-
branch = main
11+
path = lib/cmsis-svd
12+
url = https://github.com/cmsis-svd/cmsis-svd-data.git
13+
branch = main
1414
[submodule "lib/wasi-libc"]
15-
path = lib/wasi-libc
16-
url = https://github.com/WebAssembly/wasi-libc
15+
path = lib/wasi-libc
16+
url = https://github.com/WebAssembly/wasi-libc
1717
[submodule "lib/picolibc"]
18-
path = lib/picolibc
19-
url = https://github.com/keith-packard/picolibc.git
18+
path = lib/picolibc
19+
url = https://github.com/keith-packard/picolibc.git
2020
[submodule "lib/stm32-svd"]
21-
path = lib/stm32-svd
22-
url = https://github.com/tinygo-org/stm32-svd
21+
path = lib/stm32-svd
22+
url = https://github.com/tinygo-org/stm32-svd
2323
[submodule "lib/musl"]
24-
path = lib/musl
25-
url = git://git.musl-libc.org/musl
24+
path = lib/musl
25+
url = git://git.musl-libc.org/musl
2626
[submodule "lib/binaryen"]
27-
path = lib/binaryen
28-
url = https://github.com/WebAssembly/binaryen.git
27+
path = lib/binaryen
28+
url = https://github.com/WebAssembly/binaryen.git
2929
[submodule "lib/mingw-w64"]
30-
path = lib/mingw-w64
31-
url = https://github.com/mingw-w64/mingw-w64.git
30+
path = lib/mingw-w64
31+
url = https://github.com/mingw-w64/mingw-w64.git
3232
[submodule "lib/macos-minimal-sdk"]
33-
path = lib/macos-minimal-sdk
34-
url = https://github.com/aykevl/macos-minimal-sdk.git
33+
path = lib/macos-minimal-sdk
34+
url = https://github.com/aykevl/macos-minimal-sdk.git
3535
[submodule "lib/wasi-cli"]
36-
path = lib/wasi-cli
37-
url = https://github.com/WebAssembly/wasi-cli
36+
path = lib/wasi-cli
37+
url = https://github.com/WebAssembly/wasi-cli

loader/goroot.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ func pathsToOverride(goMinor int, buildTags []string) map[string]bool {
256256
"internal/task/": false,
257257
"internal/wasi/": false,
258258
"machine/": false,
259-
"net/": false,
259+
"net/": true, // this is important if the GOOS is not linux
260260
"net/http/": false,
261261
"os/": true,
262262
"reflect/": false,
@@ -278,8 +278,13 @@ func pathsToOverride(goMinor int, buildTags []string) map[string]bool {
278278

279279
if linuxNetworking(buildTags) {
280280
for _, v := range []string{"crypto/tls/", "net/http/", "net/"} {
281-
delete(paths, v) // remote entries so go stdlib is used
281+
delete(paths, v) // remove entries so go stdlib is used
282282
}
283+
284+
// ensure that the goroot path does not contain the the tinygo net package
285+
// path
286+
} else {
287+
// if the GOOS!=linux several tls files have to be for tls
283288
}
284289

285290
return paths

0 commit comments

Comments
 (0)