Skip to content

Commit 70d1425

Browse files
committed
Don't call export_symbols.py with duplicate libs
Summary: export_symbols.py discards duplicate symbols, assuming they have public definitions, so if we end up calling it with duplicate libraries we will end up with an inaccurate export list. Reviewers: jasonliu, stevewan, john.brawn Reviewed By: john.brawn Subscribers: mgorny, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D70918
1 parent bf68bcb commit 70d1425

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/cmake/modules/AddLLVM.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,7 @@ function(export_executable_symbols target)
873873
set(new_libs ${newer_libs})
874874
set(newer_libs "")
875875
endwhile()
876+
list(REMOVE_DUPLICATES static_libs)
876877
if (MSVC)
877878
set(mangling microsoft)
878879
else()

0 commit comments

Comments
 (0)