Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / compilers / tinygo / 0004-fix-darwin-build.patch
blob924533a491310342b64f43bcd2c1ebe534dc8ecd
1 diff --git a/compileopts/config.go b/compileopts/config.go
2 index 39fc4f2a..fb5d4575 100644
3 --- a/compileopts/config.go
4 +++ b/compileopts/config.go
5 @@ -269,6 +269,7 @@ func (c *Config) CFlags() []string {
6 root := goenv.Get("TINYGOROOT")
7 cflags = append(cflags,
8 "--sysroot="+filepath.Join(root, "lib/macos-minimal-sdk/src"),
9 + "-isystem", filepath.Join(root, "lib/macos-minimal-sdk/src/usr/include"), // necessary for Nix
11 case "picolibc":
12 root := goenv.Get("TINYGOROOT")