Skip to content

test: define and use %target-rpath #21279

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
Dec 17, 2018
Merged

Conversation

compnerd
Copy link
Member

Create a new capturing substitution for adding a rpath to a target
library. This is needed as Windows doesn't really support the concept
of a rpath. This also makes it possible to remove the parameter from
the command line on windows.

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

Resolves SR-NNNN.

Create a new capturing substitution for adding a rpath to a target
library.  This is needed as Windows doesn't really support the concept
of a rpath.  This also makes it possible to remove the parameter from
the command line on windows.
@compnerd
Copy link
Member Author

CC: @jrose-apple

@compnerd
Copy link
Member Author

@swift-ci please test

@jrose-apple
Copy link
Contributor

I feel like we're reaching substitution soup, but I don't have a better answer. Is this sufficient to get these tests passing on Windows (because IIRC Windows always searches the executable's directory for DLLs) or do we need to do more?

@compnerd
Copy link
Member Author

Yes, the tests are now running, not necessarily passing (there is some bug resulting in a crash, I need to look into that). But, really, this needs to happen since you are trying to pass linker specific flags through the driver ... you don't know what the underlying linker is going to be.

@compnerd
Copy link
Member Author

@jrose-apple - okay, the current failures tend to be coming from unresolved issues in the test harness, not related to this. AFAICS in the output, the library name issues in the test execution have been fixed with this.

@compnerd compnerd merged commit e94abbc into swiftlang:master Dec 17, 2018
@compnerd compnerd deleted the rpath branch December 17, 2018 20:37
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