D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 5562 - Add OS=win32wine build to druntime's posix.mak
Summary: Add OS=win32wine build to druntime's posix.mak
Status: RESOLVED WONTFIX
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: Other Linux
: P2 enhancement
Assignee: No Owner
URL:
Keywords: bootcamp
Depends on:
Blocks:
 
Reported: 2011-02-11 02:19 UTC by Jonathan M Davis
Modified: 2020-01-17 09:10 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Jonathan M Davis 2011-02-11 02:19:59 UTC
Phobos can build with OS=win32wine to build the Windows version with wine on Linux. However, druntime does not. And since you have to have druntime built to build Phobos, that makes using OS=win32wine with Phobos a bit of a pain.

So, I'd very much like it if the posix.mak makefile for druntime was updated to include a build for OS=win32wine so that it can be built in wine.
Comment 1 Alex Rønne Petersen 2012-10-09 18:14:39 UTC
Can you provide a patch for this? I imagine porting over the stuff from the Phobos posix.mak shouldn't be too hard, but I don't have a Wine environment to test with.
Comment 2 Andrei Alexandrescu 2016-10-14 14:36:08 UTC
This would be great because it would allow us to unittest for Windows (at least to some extent) on Linux machines. FWIW I'd added such for Phobos a long time ago and it worked but it has since bitrotten (and probably disappeared)
Comment 3 Mathias LANG 2020-01-17 09:10:40 UTC
We can now use `build.d` to build under wine as opposed to the Makefile.
See discussion here for a use case: https://github.com/dlang/dmd/pull/10731#issuecomment-575538851

Closing as WONTFIX since the functionality is here but not in the way the issue requests it.