From 0d4d40e8c05c79ad6277fdfcefe74c6b11543560 Mon Sep 17 00:00:00 2001 From: tongke6 <124763920+tongke6@users.noreply.github.com> Date: Mon, 14 Oct 2024 14:46:31 +0800 Subject: [PATCH] fix bazel/config not found when use yacl_cc_library in other repo (#400) --- bazel/yacl.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bazel/yacl.bzl b/bazel/yacl.bzl index cd638d1..26762eb 100644 --- a/bazel/yacl.bzl +++ b/bazel/yacl.bzl @@ -69,7 +69,7 @@ def yacl_cc_binary( **kargs): cc_binary( copts = copts + _yacl_copts() + select({ - "//bazel/config:gm": ["-DYACL_WITH_TONGSUO"], + "@yacl//bazel/config:gm": ["-DYACL_WITH_TONGSUO"], "//conditions:default": [], }), linkopts = linkopts + ["-ldl"], @@ -82,7 +82,7 @@ def yacl_cc_library( **kargs): cc_library( copts = _yacl_copts() + copts + select({ - "//bazel/config:gm": ["-DYACL_WITH_TONGSUO"], + "@yacl//bazel/config:gm": ["-DYACL_WITH_TONGSUO"], "//conditions:default": [], }), deps = deps + [ @@ -108,7 +108,7 @@ def yacl_cc_test( **kwargs): cc_test( copts = _yacl_copts() + copts + select({ - "//bazel/config:gm": ["-DYACL_WITH_TONGSUO"], + "@yacl//bazel/config:gm": ["-DYACL_WITH_TONGSUO"], "//conditions:default": [], }), deps = deps + [