Skip to content

Commit

Permalink
Gomote: add Xcode installation instructions
Browse files Browse the repository at this point in the history
Change-Id: I9d2a391eaa72146c327377d468472aebd02e7f9d
Reviewed-on: https://go-review.googlesource.com/c/wiki/+/556415
Commit-Queue: Michael Pratt <[email protected]>
Reviewed-by: Michael Knyszek <[email protected]>
Auto-Submit: Michael Pratt <[email protected]>
  • Loading branch information
prattmic authored and gopherbot committed Jan 17, 2024
1 parent bc73bfe commit be711b9
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Gomote.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,26 @@ $ GOROOT=/path/to/goroot gomote create -setup -count=10 linux-amd64
$ gomote run -until='unexpected return pc' -collect go/bin/go run -run="TestFlaky" -count=100 runtime
```

### Darwin

Darwin gomotes hosted on LUCI do not have Xcode pre-installed.
Without Xcode, they cannot do cgo builds.
You can build with cgo disabled:

```
$ gomote run -e 'CGO_ENABLED=0' $MOTE go/src/make.bash
```

Or install Xcode like so:

```
$ gomote run $MOTE /bin/mkdir /tmp/xcode
$ gomote run $MOTE /Users/swarming/.swarming/w/ir/tools/bin/mac_toolchain install -xcode-version 15a240d -output-dir /tmp/xcode/Xcode.app
$ gomote run $MOTE /usr/bin/sudo xcode-select --switch /tmp/xcode/Xcode.app
```

Note: Depending on which machine you get, the `mac_toolchain` binary referenced may alternatively be at either `/Volumes/Work/s/w/ir/tools/bin/mac_toolchain`.

### Windows

```
Expand Down

0 comments on commit be711b9

Please sign in to comment.