Skip to content

build: do not search for native LLVM when not building tools #23826

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
Apr 9, 2019

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Apr 5, 2019

The standard library does not depend on the LLVM libraries at runtime. Do not
perform the search for the LLVM configuration when the tools are not being
built. This is needed to permit cross-compiling the standard library standalone
for android on a Linux host without building LLVM and Clang for android.

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

compnerd commented Apr 5, 2019

CC: @Rostepher @gottesmm

@compnerd
Copy link
Member Author

compnerd commented Apr 5, 2019

@swift-ci please test

@gottesmm
Copy link
Contributor

gottesmm commented Apr 5, 2019

Weird to me to use SWIFT_INCLUDE_TOOLS. I need to read this in more depth to understand why this is the correct thing.

@compnerd
Copy link
Member Author

compnerd commented Apr 6, 2019

@gottesmm - that is because my old patch to rename the variable to what it truly is - SWIFT_BUILD_TOOLS languished.

The standard library does not depend on the LLVM libraries at runtime.  Do not
perform the search for the LLVM configuration when the tools are not being
built.  This is needed to permit cross-compiling the standard library standalone
for android on a Linux host without building LLVM and Clang for android.
@compnerd
Copy link
Member Author

compnerd commented Apr 9, 2019

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Apr 9, 2019

Build failed
Swift Test Linux Platform
Git Sha - e90fb74b9957093ba9cbeabd782d1d520457b5ec

@compnerd compnerd merged commit 38176ba into swiftlang:master Apr 9, 2019
@compnerd compnerd deleted the tool-less-case branch April 9, 2019 22:21
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.

4 participants