Skip to content

build: workaround cross-compilation for Windows #19747

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

Merged
merged 1 commit into from
Oct 6, 2018

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Oct 5, 2018

When cross-compiling the Windows standard library in release mode, we
would get undefined symbols due to LLVM invoking
add_definitions(-D_DEBUG). This would change the behaviour of certain
functions from MSVCRT resulting in undefined symbols. Scrub out the
unwanted -D_DEBUG.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

When cross-compiling the Windows standard library in release mode, we
would get undefined symbols due to LLVM invoking
`add_definitions(-D_DEBUG)`.  This would change the behaviour of certain
functions from MSVCRT resulting in undefined symbols.  Scrub out the
unwanted `-D_DEBUG`.
@compnerd
Copy link
Member Author

compnerd commented Oct 5, 2018

@swift-ci please test and merge

@swift-ci swift-ci merged commit da8eb3c into swiftlang:master Oct 6, 2018
@compnerd compnerd deleted the defaway branch December 11, 2018 17:10
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