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

Upgrade to v2.083.0-beta.2 #2878

Merged
merged 21 commits into from
Oct 27, 2018
Merged

Upgrade to v2.083.0-beta.2 #2878

merged 21 commits into from
Oct 27, 2018

Conversation

kinke
Copy link
Member

@kinke kinke commented Oct 19, 2018

This has been a royal PITA so far; just checking CI for now.

Reminders to self:

  • linkerDirective pragma
  • Target.getTargetInfo()
  • find lost CLI changes

@kinke kinke force-pushed the merge-2.083 branch 5 times, most recently from f0abf00 to 3a45974 Compare October 19, 2018 22:36
@kinke
Copy link
Member Author

kinke commented Oct 20, 2018

Looking surprisingly good now. The ltsmaster host compiler fails due to missing core.bitop.popcnt(ulong).

@JohanEngelen
Copy link
Member

Nice that you are working on this.
I think for future versions, LTS is no longer usable for bootstrapping because ddmd increased the dlang version requirement. It's nice that you could still make LTS work for this version.

@kinke
Copy link
Member Author

kinke commented Oct 20, 2018

Yeah, I'll try to keep ltsmaster-compilability for as long as possible if the effort is manageable.

More cleanups incoming - unrelated to 2.083 of course, but the upstream changes kinda inspired me. ;)

@kinke kinke changed the title [WIP] Upgrade to v2.083.0-beta.1 Upgrade to v2.083.0-beta.1 Oct 20, 2018
@kinke
Copy link
Member Author

kinke commented Oct 26, 2018

We'll probably be able to ship fully standalone Windows packages with v1.13, finally getting rid of the MS libs requirement, at least as experimental feature. I didn't expect having to dig deep into C runtime initialization etc. (and now have much more respect for/idea of the work Rainer put into this to make this work for DMD). Check out dlang/installer#346 if interested in some dirty details.

I got a std.stdio hello-world executable to work on Win64 using the
Visual C++ 2015 DLLs, with both MS linker and -link-internally, see
dlang/installer#346.

It still requires a couple of extra command-line args, but will in the
end enable us to get rid of all external dependencies for building on
Windows (via -link-internally and the MinGW-w64-based import libs, which
will only add a few MB to the prebuilt packages).

The Visual C++ 2015 *runtime* will need to be installed when running
binaries linked against the MinGW libs.
kinke added 2 commits October 26, 2018 23:57
E.g., via:

cmake -G Ninja -DCMAKE_C_COMPILER:PATH=clang-cl.exe
               -DCMAKE_CXX_COMPILER:PATH=clang-cl.exe
@kinke kinke changed the title Upgrade to v2.083.0-beta.1 Upgrade to v2.083.0-beta.2 Oct 26, 2018
@kinke kinke merged commit 9ebf72d into ldc-developers:master Oct 27, 2018
@kinke kinke deleted the merge-2.083 branch October 27, 2018 20:58
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.

2 participants