From c31ae827cf27f760e242b410a93b1a6518bd47b4 Mon Sep 17 00:00:00 2001 From: Yun Peng Date: Mon, 25 Jan 2021 15:26:51 +0100 Subject: [PATCH] Fix test target on macOS with Bazel@HEAD Context: https://github.com/bazelbuild/bazel/issues/4341#issuecomment-762576370 --- examples/ffi/rust_calling_c/c/BUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ffi/rust_calling_c/c/BUILD b/examples/ffi/rust_calling_c/c/BUILD index b2c3ce6952..77a262818f 100644 --- a/examples/ffi/rust_calling_c/c/BUILD +++ b/examples/ffi/rust_calling_c/c/BUILD @@ -20,9 +20,9 @@ cc_test( ## Do the same as above, but with a dynamic c library. -cc_library( +cc_import( name = "native_matrix_so", - srcs = [":libnative_matrix_so.so"], + shared_library = ":libnative_matrix_so.so", hdrs = ["matrix.h"], )