This is an archive of the discontinued LLVM Phabricator instance.

[LLD] [MinGW] Add an --appcontainer flag, passed through to lld-link
ClosedPublic

Authored by mstorsjo on Apr 18 2019, 2:44 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

mstorsjo created this revision.Apr 18 2019, 2:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 18 2019, 2:44 AM
ruiu accepted this revision.Apr 18 2019, 11:00 PM

LGTM

I'm curious what kind of application you want to use this option for.

This revision is now accepted and ready to land.Apr 18 2019, 11:00 PM

LGTM

I'm curious what kind of application you want to use this option for.

When building DLLs for UWP/WinStore/WinRT, this flag needs to be set, afaik.

Since GNU ld doesn't support the flag, VLC used to set it with a perl script for editing binaries and setting the flag. :-) https://code.videolan.org/videolan/vlc-winrt/blob/master/libvlc/appcontainer.pl

This revision was automatically updated to reflect the committed changes.