-
Notifications
You must be signed in to change notification settings - Fork 10.6k
build.ps1: build brotli for Android #84883
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 smoke test |
|
Well, the status seems to be positive - which is better than the previous state, so I think that we should continue with that and resolve any issues subsequently |
|
@swift-ci please smoke test macOS platform |
|
@swift-ci please smoke test |
|
@swift-ci please smoke test |
|
Building Android SDK with |
Yeah, I find that very odd. I cannot explain why that doesn't work for Android. However, I think that getting things working is more important currently. |
|
@swift-ci please smoke test |
|
@swift-ci please smoke test |
| @@ -2572,6 +2572,17 @@ function Build-CURL([Hashtable] $Platform) { | |||
| BUILD_SHARED_LIBS = "NO"; | |||
| BUILD_TESTING = "NO"; | |||
| CMAKE_POSITION_INDEPENDENT_CODE = "YES"; | |||
| BROTLI_INCLUDE_DIR = "$SourceCache\brotli\c\include"; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any idea why the find_package(Brotli) isn't finding these directories? It looks like brotli is getting installed under b\aarch64-unknown-linux-android28\{include\,lib\} (in the case of the Android build, of course)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
brotli doesn't seem to have the config files for CMake to locate the package. pkg-config cannot be used as that is not a standard Windows tool. As a result, we need to pass along the paths ourselves.
I've taken this opportunity to simply not even install brotli. This is a micro-optimization as it avoids some additional disk I/O.
|
Please test with following PRs: @swift-ci please build toolchain Windows platform |
This is currently preventing the Windows nightlies from passing. Ensure that we build the brotli library for Android as well.
|
Please test with following PRs: @swift-ci please build toolchain Windows platform |
|
@swift-ci please smoke test |
When building Android, we would fail to find the brotli build. Explicitly pass the library paths and include paths to workaround the issue. This is not ideal, but will unblock the build. Avoid the installation of the library as it is not required, which avoids updating the mtime on a null-build.
|
Please test with following PRs: @swift-ci please build toolchain Windows platform |
|
@swift-ci please smoke test |
This is currently preventing the Windows nightlies from passing. Ensure that we build the brotli library for Android as well.