1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

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
This commit is contained in:
David Tenty 2019-12-11 17:21:54 -05:00
parent 85da99bf46
commit 5687a21fc1

View File

@ -873,6 +873,7 @@ function(export_executable_symbols target)
set(new_libs ${newer_libs}) set(new_libs ${newer_libs})
set(newer_libs "") set(newer_libs "")
endwhile() endwhile()
list(REMOVE_DUPLICATES static_libs)
if (MSVC) if (MSVC)
set(mangling microsoft) set(mangling microsoft)
else() else()