Skip to content

Commit cf4a8aa

Browse files
committed
fix(//cpp/api): The actual api was getting stripped, using alwayslink to
fix (Thanks @bddppq for the pointer) Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent 91a7416 commit cf4a8aa

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: core/BUILD

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ cc_library(
1515
"//core/util/logging",
1616
"@libtorch//:libtorch",
1717
"@tensorrt//:nvinfer"
18-
]
18+
],
19+
alwayslink=True,
1920
)
2021

2122

Diff for: cpp/api/BUILD

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ cc_library(
1717
"//core/util:prelude"
1818
],
1919
strip_include_prefix = "include/",
20-
linkstatic = True
20+
linkstatic = True,
21+
alwayslink = True
2122
)
2223

2324

0 commit comments

Comments
 (0)