Skip to content

Commit

Permalink
fix bazel/config not found when use yacl_cc_library in other repo (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
tongke6 authored Oct 14, 2024
1 parent ccabb41 commit 0d4d40e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bazel/yacl.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand All @@ -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 + [
Expand All @@ -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 + [
Expand Down

0 comments on commit 0d4d40e

Please sign in to comment.