Skip to content

[build] Check for unicode functions in libedit #29115

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
Jan 11, 2020

Conversation

smeenai
Copy link
Contributor

@smeenai smeenai commented Jan 10, 2020

Some versions of libedit may have histedit.h but not the Unicode
functions. Explicitly check for the Unicode functions in the found
libedit to ensure the check is accurate.

I considered making this a component of the LibEdit package in our find
module, but CMake's documentation [1] says "Packages that find multiple
semi-independent parts (like bundles of libraries) should search for the
components...", and the "multiple semi-independent parts" definitely
isn't the case here; we're just interested in determining if the found
library supports a particular feature.

[1] https://cmake.org/cmake/help/v3.16/manual/cmake-developer.7.html#find-modules

@smeenai
Copy link
Contributor Author

smeenai commented Jan 10, 2020

CC @compnerd

Some versions of libedit may have histedit.h but not the Unicode
functions. Explicitly check for the Unicode functions in the found
libedit to ensure the check is accurate.

I considered making this a component of the LibEdit package in our find
module, but CMake's documentation [1] says "Packages that find multiple
semi-independent parts (like bundles of libraries) should search for the
components...", and the "multiple semi-independent parts" definitely
isn't the case here; we're just interested in determining if the found
library supports a particular feature.

[1] https://cmake.org/cmake/help/v3.16/manual/cmake-developer.7.html#find-modules
@smeenai
Copy link
Contributor Author

smeenai commented Jan 10, 2020

I have no idea how to clear the changes requested state, but I've updated and addressed the comments.

@compnerd
Copy link
Member

@swift-ci please test and merge

@smeenai
Copy link
Contributor Author

smeenai commented Jan 10, 2020

Test failure looks unrelated.

@bulbazord
Copy link
Contributor

@swift-ci please test and merge

@swift-ci swift-ci merged commit 631b740 into swiftlang:master Jan 11, 2020
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