From f665d092254845812ed0e89ccda57c5873a34dd1 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Mon, 25 Mar 2019 11:57:10 -0700 Subject: [PATCH] Buildify tensorrt's generated BUILD file. Ran buildifier and manually fixed the package location. PiperOrigin-RevId: 240188658 --- third_party/tensorrt/BUILD.tpl | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/third_party/tensorrt/BUILD.tpl b/third_party/tensorrt/BUILD.tpl index a41ab808c70..4ff7da9ecc7 100644 --- a/third_party/tensorrt/BUILD.tpl +++ b/third_party/tensorrt/BUILD.tpl @@ -3,12 +3,12 @@ licenses(["notice"]) -exports_files(["LICENSE"]) - load("@local_config_cuda//cuda:build_defs.bzl", "cuda_default_copts") package(default_visibility = ["//visibility:public"]) +exports_files(["LICENSE"]) + cc_library( name = "tensorrt_headers", hdrs = [%{tensorrt_headers}], @@ -18,15 +18,14 @@ cc_library( cc_library( name = "tensorrt", srcs = %{tensorrt_libs}, + copts = cuda_default_copts(), data = %{tensorrt_libs}, - copts= cuda_default_copts(), - deps = [ - "@local_config_cuda//cuda:cuda", - ":tensorrt_headers", - ], linkstatic = 1, visibility = ["//visibility:public"], + deps = [ + ":tensorrt_headers", + "@local_config_cuda//cuda", + ], ) %{copy_rules} -