Skip to content

Commit

Permalink
Merge pull request #6547 from kpedro88/triton_typeinfo
Browse files Browse the repository at this point in the history
remove ldscript from triton build to keep typeinfo
  • Loading branch information
smuzaffar authored Jan 13, 2021
2 parents eaf1b73 + d9e3b53 commit 902bbc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions triton-inference-server.spec
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ sed -i '/triton-json-library/d' ../%{n}-%{realversion}/src/clients/c++/library/C
sed -i 's~add_subdirectory(../../src/clients/python src/clients/python)~~' ../%{n}-%{realversion}/build/client/CMakeLists.txt
# remove attempts to install external libs
sed -i '\~../../../../..~d' ../%{n}-%{realversion}/src/clients/c++/library/CMakeLists.txt
# keep typeinfo in .so by removing ldscript from properties
sed -i '/set_target_properties/,+5d' ../%{n}-%{realversion}/src/clients/c++/library/CMakeLists.txt
#change flag due to bug in gcc10 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95148
if [[ `gcc --version | head -1 | cut -d' ' -f3 | cut -d. -f1,2,3 | tr -d .` -gt 1000 ]] ; then
sed -i -e "s|Werror|Wtype-limits|g" ../%{n}-%{realversion}/build/client/CMakeLists.txt
Expand Down

0 comments on commit 902bbc0

Please sign in to comment.