We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58006ba commit 172d4d5Copy full SHA for 172d4d5
cpp/trtorchc/BUILD
@@ -1,14 +1,28 @@
1
package(default_visibility = ["//visibility:public"])
2
3
+config_setting(
4
+ name = "use_pre_cxx11_abi",
5
+ values = {
6
+ "define": "abi=pre_cxx11_abi",
7
+ }
8
+)
9
+
10
cc_binary(
11
name = "trtorchc",
12
srcs = [
13
"main.cpp"
14
],
15
deps = [
- "@libtorch//:libtorch",
- "@libtorch//:caffe2",
16
"//third_party/args",
17
"//cpp/api:trtorch"
- ],
-)
18
+ ] + select({
19
+ ":use_pre_cxx11_abi": [
20
+ "@libtorch_pre_cxx11_abi//:libtorch",
21
+ "@libtorch_pre_cxx11_abi//:caffe2",
22
+ ],
23
+ "//conditions:default": [
24
+ "@libtorch//:libtorch",
25
+ "@libtorch//:caffe2",
26
27
+ }),
28
0 commit comments