Skip to content

Commit 8cd0094

Browse files
author
Elias Naur
committed
misc/ios: don't override TMPDIR on idevice
If TMPDIR is not set, the iOS runtime will automatically set TMPDIR to a valid app temporary path. For the iOS builders. Change-Id: Ia82404059dcb10678f0a6e0c96d5efc79a5485fd Reviewed-on: https://go-review.googlesource.com/110956 Run-TryBot: Elias Naur <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 28b40f3 commit 8cd0094

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

misc/ios/go_darwin_arm_exec.go

+9
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,15 @@ func run(appdir, deviceapp string, args []string) error {
403403
deviceapp,
404404
)
405405
lldb.Args = append(lldb.Args, args...)
406+
var env []string
407+
for _, e := range os.Environ() {
408+
// Don't override TMPDIR on the device.
409+
if strings.HasPrefix(e, "TMPDIR=") {
410+
continue
411+
}
412+
env = append(env, e)
413+
}
414+
lldb.Env = env
406415
lldb.Stdin = strings.NewReader(lldbDriver)
407416
lldb.Stdout = os.Stdout
408417
lldb.Stderr = os.Stderr

0 commit comments

Comments
 (0)