diff options
author | David Tenty <daltenty@ibm.com> | 2019-12-11 17:21:54 -0500 |
---|---|---|
committer | David Tenty <daltenty@ibm.com> | 2019-12-11 17:23:31 -0500 |
commit | 70d14255dfcd9c4849deff9e9f2912c8ec030d11 (patch) | |
tree | 64ff617aaa741bfb7300321e102c6d813ea79446 /llvm/cmake | |
parent | bf68bcb920ffdac5da8b82cd06535cec5dc5a56b (diff) | |
download | bcm5719-llvm-70d14255dfcd9c4849deff9e9f2912c8ec030d11.tar.gz bcm5719-llvm-70d14255dfcd9c4849deff9e9f2912c8ec030d11.zip |
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
Diffstat (limited to 'llvm/cmake')
-rw-r--r-- | llvm/cmake/modules/AddLLVM.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake index 518ea608d23..34f532c9e45 100644 --- a/llvm/cmake/modules/AddLLVM.cmake +++ b/llvm/cmake/modules/AddLLVM.cmake @@ -873,6 +873,7 @@ function(export_executable_symbols target) set(new_libs ${newer_libs}) set(newer_libs "") endwhile() + list(REMOVE_DUPLICATES static_libs) if (MSVC) set(mangling microsoft) else() |