fix: simulator and nix issues

This commit is contained in:
2026-06-12 19:29:46 -05:00
parent ae74cb807d
commit b5acacda9d
+2
View File
@@ -20,6 +20,7 @@ GOARCH_arm64 := arm64
GOARCH_x86_64 := amd64 GOARCH_x86_64 := amd64
GOOS_macosx := darwin GOOS_macosx := darwin
GOOS_iphoneos := ios GOOS_iphoneos := ios
GOOS_iphonesimulator := ios
build: $(DESTDIR)/libwg-go.a build: $(DESTDIR)/libwg-go.a
version-header: $(DESTDIR)/wireguard-go-version.h version-header: $(DESTDIR)/wireguard-go-version.h
@@ -29,6 +30,7 @@ export GOROOT := $(BUILDDIR)/goroot
$(GOROOT)/.prepared: $(GOROOT)/.prepared:
[ -n "$(REAL_GOROOT)" ] [ -n "$(REAL_GOROOT)" ]
mkdir -p "$(GOROOT)" mkdir -p "$(GOROOT)"
chmod -R u+w "$(GOROOT)"
rsync -a --delete --exclude=pkg/obj/go-build "$(REAL_GOROOT)/" "$(GOROOT)/" rsync -a --delete --exclude=pkg/obj/go-build "$(REAL_GOROOT)/" "$(GOROOT)/"
cat goruntime-*.diff | patch -p1 -f -N -r- -d "$(GOROOT)" cat goruntime-*.diff | patch -p1 -f -N -r- -d "$(GOROOT)"
touch "$@" touch "$@"