Skip to content

test: add a ODR violation check for the static standard library #32078

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
May 30, 2020

Conversation

compnerd
Copy link
Member

The static version of the standard library was leaking symbols in the
llvm:: namespace which would result in ODR violations were the
artifact linking against LLVMSupport (via another dependency). In
particular, llvm::SmallVector and llvm::StringSwitch symbols were
being leaked. This adds a test case specifically for the static variant
of the library. The dynamic variant of the library is already tested in
a separate test.

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

Resolves SR-NNNN.

@compnerd
Copy link
Member Author

@swift-ci please test Linux platform

@compnerd
Copy link
Member Author

(this is expected to fail until #32066 and #32076 are merged)

@compnerd
Copy link
Member Author

CC: @mikeash

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 171405a

@compnerd
Copy link
Member Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 171405a

The static version of the standard library was leaking symbols in the
`llvm::` namespace which would result in ODR violations were the
artifact linking against `LLVMSupport` (via another dependency).  In
particular, `llvm::SmallVector` and `llvm::StringSwitch` symbols were
being leaked.  This adds a test case specifically for the static variant
of the library.  The dynamic variant of the library is already tested in
a separate test.
@compnerd compnerd force-pushed the if-it-isnt-tested-its-broken branch from 171405a to 63c8c00 Compare May 29, 2020 21:02
@compnerd
Copy link
Member Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 63c8c00

@compnerd
Copy link
Member Author

@swift-ci please test Linux platform

@compnerd
Copy link
Member Author

@swift-ci please test Windows platform

@compnerd compnerd merged commit 50c0534 into swiftlang:master May 30, 2020
@compnerd compnerd deleted the if-it-isnt-tested-its-broken branch May 30, 2020 19:22
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