]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: create -objdir if not exist
authorMichael Podtserkovskii <michaelpo@meta.com>
Fri, 5 Apr 2024 12:58:35 +0000 (13:58 +0100)
committerGopher Robot <gobot@golang.org>
Mon, 15 Apr 2024 22:43:52 +0000 (22:43 +0000)
commit1488bb6c4c6487f9ef3c6d59a84a29fea9ec9266
tree6a2ffff81692a37a17b219774f2a6f473beff57c
parentca94e9e223888d6d99a8f7b559f08bb59d2cc5fd
cmd/cgo: create -objdir if not exist

Currently the directory is created only if -objdir is omited.
Creating the directory here is useful to avoid doing this in each build system.
And also this is consistent with similar flags of other tools like `-o`.

Change-Id: Ic39d6eb3e003bc4884089f80f790e30df4a54b01
Reviewed-on: https://go-review.googlesource.com/c/go/+/576815
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
src/cmd/cgo/main.go