From d3c2e7e6b967a684cf3d991e946caac585406f25 Mon Sep 17 00:00:00 2001 From: Naren Dasan Date: Thu, 6 Aug 2020 13:29:40 -0700 Subject: [PATCH] feat(//third_party/tensorrt): Add back TensorRT static lib in a cross platform friendly way Signed-off-by: Naren Dasan Signed-off-by: Naren Dasan --- third_party/tensorrt/local/BUILD | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/third_party/tensorrt/local/BUILD b/third_party/tensorrt/local/BUILD index 3a9b8b2710..69f54d8246 100644 --- a/third_party/tensorrt/local/BUILD +++ b/third_party/tensorrt/local/BUILD @@ -67,6 +67,10 @@ cc_import( ":windows": "lib/nvinfer.dll", "//conditions:default": "lib/x86_64-linux-gnu/libnvinfer.so", }), + static_library = select({ + ":windows": "lib/nvinfer.lib", + "//conditions:default": "" + }), visibility = ["//visibility:private"], )