This is an archive of the discontinued LLVM Phabricator instance.

[CMake] Fix bug in `add_weak_symbols()` function.
ClosedPublic

Authored by delcypher on Jul 31 2018, 6:24 AM.

Details

Summary

[CMake] Fix bug in add_weak_symbols() function.

Previously the the weak_symbols.txt files could be modified and the
build system wouldn't update the link flags automatically. Instead the
developer had to know to reconfigure CMake manually.

This is now fixed by telling CMake that the file being used to
read weak symbols from is a configure-time dependency.

Diff Detail

Repository
rL LLVM

Event Timeline

delcypher created this revision.Jul 31 2018, 6:24 AM
Herald added subscribers: Restricted Project, mgorny. · View Herald TranscriptJul 31 2018, 6:24 AM

Makes sense, I guess it has to be done at configuration stage, as flags are added during the configuration.

This revision is now accepted and ready to land.Aug 10 2018, 10:59 AM
This revision was automatically updated to reflect the committed changes.