Skip to content

Commit 6d3a924

Browse files
committed
Merge pull request bnb-chain#2036 from karalabe/ios-arm64-cross
Makefile: support 64bit ARM iOS cross builds
2 parents 3eebeae + 9acec62 commit 6d3a924

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

‎Makefile‎

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
.PHONY: geth-linux-arm geth-linux-arm-5 geth-linux-arm-6 geth-linux-arm-7 geth-linux-arm64
88
.PHONY: geth-darwin geth-darwin-386 geth-darwin-amd64
99
.PHONY: geth-windows geth-windows-386 geth-windows-amd64
10-
.PHONY: geth-android geth-ios
10+
.PHONY: geth-android
11+
.PHONY: geth-ios geth-ios-arm-7 geth-ios-arm64
1112

1213
GOBIN = build/bin
1314

@@ -95,11 +96,20 @@ geth-android: xgo
9596
@echo "Android cross compilation done:"
9697
@ls -l $(GOBIN)/geth-android-*
9798

98-
geth-ios: xgo
99-
build/env.sh $(GOBIN)/xgo --go=$(GO) --buildmode=$(MODE) --dest=$(GOBIN) --deps=$(CROSSDEPS) --depsargs=--disable-assembly --targets=ios/* -v $(shell build/flags.sh) ./cmd/geth
99+
geth-ios: geth-ios-arm-7 geth-ios-arm64
100100
@echo "iOS cross compilation done:"
101101
@ls -l $(GOBIN)/geth-ios-*
102102

103+
geth-ios-arm-7: xgo
104+
build/env.sh $(GOBIN)/xgo --go=$(GO) --buildmode=$(MODE) --dest=$(GOBIN) --deps=$(CROSSDEPS) --depsargs=--disable-assembly --targets=ios/arm-7 -v $(shell build/flags.sh) ./cmd/geth
105+
@echo "iOS ARMv7 cross compilation done:"
106+
@ls -l $(GOBIN)/geth-ios-* | grep arm-7
107+
108+
geth-ios-arm64: xgo
109+
build/env.sh $(GOBIN)/xgo --go=$(GO) --buildmode=$(MODE) --dest=$(GOBIN) --deps=$(CROSSDEPS) --depsargs=--disable-assembly --targets=ios-7.0/arm64 -v $(shell build/flags.sh) ./cmd/geth
110+
@echo "iOS ARM64 cross compilation done:"
111+
@ls -l $(GOBIN)/geth-ios-* | grep arm64
112+
103113
evm:
104114
build/env.sh $(GOROOT)/bin/go install -v $(shell build/flags.sh) ./cmd/evm
105115
@echo "Done building."

0 commit comments

Comments
 (0)