Skip to content

Conversation

@compnerd
Copy link
Member

@compnerd compnerd commented May 7, 2017

Add some cl flags handling to the build system. Improve macros for Windows builds to detect the target correctly. This is not enough to perform a full Windows build yet but addresses some of the low hanging fruit.

compnerd added 3 commits May 6, 2017 18:38
sys/cdefs.h and unistd.h are not always available.  We already have
checks for these, guard the inclusion appropriately.
Rather than checking for non-Linux and including the target specific
header, invert the check and include the linux target header if
`__linux__` is defined.  This makes it easier to target other platforms.
Address some of the portability considerations for the build flags.
This improves some of the conditions for building for Windows.
@MadCoder
Copy link
Contributor

MadCoder commented May 7, 2017

I thought that MSVC was supporting clang nowadays? I don't think we will ever be able to use MSVC as a compiler for the larger goal of supporting Swift because you will need blocks support and many other things.

am I missing something here?

@compnerd
Copy link
Member Author

compnerd commented May 7, 2017

Yeah, if you look at the diffs, the assumption is that you are using clang. The support here is for the clang cl driver.

@MadCoder
Copy link
Contributor

MadCoder commented May 7, 2017

oh I didn't realize that MSVC had a driver exposed through the same weird Windows command line parsing. I guess it makes sense, the same way clang is compatible with gcc CLI ;)

ok let me look at it again with that in mind then!

@MadCoder
Copy link
Contributor

MadCoder commented May 7, 2017

@swift-ci please test

@MadCoder MadCoder merged commit 5e8789e into swiftlang:master May 7, 2017
@das
Copy link
Contributor

das commented May 19, 2017

it is invalid to put HAVE_* type checks in to API and SPI headers, there is no config.h file included by API clients on Darwin

das pushed a commit that referenced this pull request May 25, 2017
Windows cleanups

Signed-off-by: Daniel A. Steffen <dsteffen@apple.com>
@compnerd compnerd deleted the windows-cleanups branch February 15, 2020 19:39
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.

3 participants