Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add buildsdk: tool to create COFF import libraries from MinGW def files #267

Closed
wants to merge 4 commits into from

Conversation

rainers
Copy link
Member

@rainers rainers commented Nov 1, 2017

add tool to build a simple replacement for the VC runtime and the Windows SDK using the preinstalled MSVCRT.DLL and import libraries generated from MinGW definition files.

Compilation will have to be done with -mscrtlib=msvcrt51 to pick up this runtime.

To be integrated with the installer builds...

…dows SDK using the preinstalled MSVCRT.DLL and import libraries generated from MinGW definition files.
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @rainers!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

@rainers
Copy link
Member Author

rainers commented Nov 1, 2017

Building slightly more elaborate programs (e.g. using writeln) revealed that I've been a bit too optimistic here: phobos needs symbols that are not available in MSVCRT.DLL, but need MSCR800.DLL or later.

That means we might need to install a VC redistributable package as well as mimick OLDNAMES.LIB for C symbols no longer in the DLL.

build proper oldnames.lib
implement atexit
@dnadlinger
Copy link
Member

dnadlinger commented Nov 5, 2017

Do I understand correctly that distributing the resulting files (modulo the DLL availability issue) would allow linking without MinGW or Windows SDK being present (with LDC's -link-internally then being truly stand-alone)?

@rainers
Copy link
Member Author

rainers commented Nov 5, 2017

would allow linking without MinGW or Windows SDK being present

Yes, it also allows to dynamically link against the VS2010 C runtime from the redistributables (other versions should be easy to adapt to, but MinGW support seems to be limited to VS2013). The idea is to bundle this with lld-link for a standalone installation without further dependencies.

LDC is a bit different as it only supports VS2015 or later and requires the C++ runtime (for exceptions). That would need additional work.

@rainers
Copy link
Member Author

rainers commented Jan 12, 2018

Closing in favour of adding this to the installer repo: dlang/installer#289

@rainers rainers closed this Jan 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants