-
Notifications
You must be signed in to change notification settings - Fork 10.5k
build: improve libedit handling for builds #25275
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
Conversation
@swift-ci please test |
Build failed |
@swift-ci please test macOS platform |
Build failed |
|
Hmm, I didn't see anything in libedit that implied that the w* versions were optional. Did I miss something? |
Maybe there was a really old libedit lying around on an older macOS, and then we copied this forward without thinking about it. If @akyrtzi isn't worried then I guess it's fine (but then we should not bother having two names for whether or not it's available). |
Unfortunately, we do need two names for it - the preprocessor macro shouldn't use the CMake naming. CMake uses |
@swift-ci please test macOS platform |
Build failed |
Oh, I didn't think about the fact that the second CMake name was still needed for |
@swift-ci please test macOS platform |
Build failed |
@swift-ci please test macOS platform |
Build failed |
@swift-ci please test macOS platform |
Build failed |
@swift-ci please test macOS platform |
Build failed |
Use the `FindLibEdit.cmake` module from LLDB to properly control where the libedit libraries are searched for and linked from as well as where the headers come from. This uses the standard mechanisms which allows users to control where libedit is pulled from (which is important for cross-compilation).
@swift-ci please test |
I think this change may have broken the build on our 14.04 bots:
|
Use the
FindLibEdit.cmake
module from LLDB to properly control wherethe libedit libraries are searched for and linked from as well as where
the headers come from. This uses the standard mechanisms which allows
users to control where libedit is pulled from (which is important for
cross-compilation).
Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.
Resolves SR-NNNN.