From 2a82d5ad68ded1dde0adae2d2533f3c68f3e2492 Mon Sep 17 00:00:00 2001 From: Kevin Krakauer Date: Wed, 16 Oct 2019 16:27:55 -0700 Subject: Reorder BUILD license and load functions in gvisor. PiperOrigin-RevId: 275139066 --- third_party/gvsync/BUILD | 3 +-- third_party/gvsync/atomicptrtest/BUILD | 3 +-- third_party/gvsync/seqatomictest/BUILD | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) (limited to 'third_party/gvsync') diff --git a/third_party/gvsync/BUILD b/third_party/gvsync/BUILD index 8dab51daa..7d6d59c48 100644 --- a/third_party/gvsync/BUILD +++ b/third_party/gvsync/BUILD @@ -1,4 +1,5 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("//tools/go_generics:defs.bzl", "go_template") package( default_visibility = ["//:sandbox"], @@ -7,8 +8,6 @@ package( exports_files(["LICENSE"]) -load("//tools/go_generics:defs.bzl", "go_template") - go_template( name = "generic_atomicptr", srcs = ["atomicptr_unsafe.go"], diff --git a/third_party/gvsync/atomicptrtest/BUILD b/third_party/gvsync/atomicptrtest/BUILD index 6cf69ea91..447ecf96a 100644 --- a/third_party/gvsync/atomicptrtest/BUILD +++ b/third_party/gvsync/atomicptrtest/BUILD @@ -1,9 +1,8 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("//tools/go_generics:defs.bzl", "go_template_instance") package(licenses = ["notice"]) -load("//tools/go_generics:defs.bzl", "go_template_instance") - go_template_instance( name = "atomicptr_int", out = "atomicptr_int_unsafe.go", diff --git a/third_party/gvsync/seqatomictest/BUILD b/third_party/gvsync/seqatomictest/BUILD index 9e87e0bc5..c858c20c4 100644 --- a/third_party/gvsync/seqatomictest/BUILD +++ b/third_party/gvsync/seqatomictest/BUILD @@ -1,9 +1,8 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("//tools/go_generics:defs.bzl", "go_template_instance") package(licenses = ["notice"]) -load("//tools/go_generics:defs.bzl", "go_template_instance") - go_template_instance( name = "seqatomic_int", out = "seqatomic_int_unsafe.go", -- cgit v1.2.3