This is an archive of the discontinued LLVM Phabricator instance.

[libunwind] Add a cmake option for disabling the use of the dynamic linker
AbandonedPublic

Authored by mstorsjo on Mar 14 2018, 1:34 PM.

Details

Reviewers
rnk
compnerd
Summary

On windows, the psapi function for querying the dynamic linker for loaded modules (EnumProcessModules) are unavailable when targeting the UWP/"Windows Store" api subsets.

Such a build relies on the static frame registration functions for finding exception handlers.

Diff Detail

Event Timeline

mstorsjo created this revision.Mar 14 2018, 1:34 PM
rnk accepted this revision.Mar 14 2018, 1:57 PM

lgtm

This revision is now accepted and ready to land.Mar 14 2018, 1:57 PM
mstorsjo abandoned this revision.Jul 11 2018, 11:46 AM

I choose not to commit this one after all, I managed to work around the issue with Windows Store apps in a much simpler way by providing a Windows Store compatible version of EnumProcessModules, see https://sourceforge.net/p/mingw-w64/mingw-w64/ci/0e1f41358845706a1adafcf4f9d27db0319dd3d9/.