diff options
author | George Burgess IV <gbiv@google.com> | 2021-02-04 12:33:36 -0800 |
---|---|---|
committer | George Burgess <gbiv@chromium.org> | 2021-02-04 21:37:08 +0000 |
commit | 235f72a0dceb95dd50b9a5e4c5485d8158dfb16a (patch) | |
tree | f12bd17635ce6582d2a0e75441e2ea450b7dcf61 | |
parent | 1ac4f769d564e21d821927e50d8cbbadd5c40def (diff) | |
download | toolchain-utils-235f72a0dceb95dd50b9a5e4c5485d8158dfb16a.tar.gz |
compiler_wrapper: add go.mod
In order to build this outside of the chroot, we apparently now need a
go.mod file. This is autogenerated by the `go` tool.
BUG=None
TEST=Built inside and outside of the chroot
Change-Id: I185cb9b626c8b3655ce5cc72524ef2511c7f575e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2676607
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
Tested-by: George Burgess <gbiv@chromium.org>
-rwxr-xr-x | compiler_wrapper/bundle.py | 2 | ||||
-rw-r--r-- | compiler_wrapper/go.mod | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/compiler_wrapper/bundle.py b/compiler_wrapper/bundle.py index 173625f4..27b422f3 100755 --- a/compiler_wrapper/bundle.py +++ b/compiler_wrapper/bundle.py @@ -25,7 +25,7 @@ def parse_args(): def copy_files(input_dir, output_dir): for filename in os.listdir(input_dir): if ((filename.endswith('.go') and not filename.endswith('_test.go')) or - filename == 'build.py'): + filename in ('build.py', 'go.mod')): shutil.copy( os.path.join(input_dir, filename), os.path.join(output_dir, filename)) diff --git a/compiler_wrapper/go.mod b/compiler_wrapper/go.mod new file mode 100644 index 00000000..ce6df01f --- /dev/null +++ b/compiler_wrapper/go.mod @@ -0,0 +1,3 @@ +module chromium.org/toolchain-utils/compiler_wrapper + +go 1.13 |