Skip to content

Commit 31e3964

Browse files
authored
Merge pull request #20 from narendasan/fix-stripped-apis
Fix stripping of apis from the final .so
2 parents e638ea3 + cf4a8aa commit 31e3964

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

core/BUILD

Lines changed: 2 additions & 1 deletion
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

cpp/api/BUILD

Lines changed: 2 additions & 1 deletion
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)