Skip to content

Comments

Find zlib from xcode or brew on Mojave#1353

Merged
joshfriend merged 1 commit intopyenv:masterfrom
mikeroll:mojave-zlib
Jun 11, 2019
Merged

Find zlib from xcode or brew on Mojave#1353
joshfriend merged 1 commit intopyenv:masterfrom
mikeroll:mojave-zlib

Conversation

@mikeroll
Copy link
Contributor

@mikeroll mikeroll commented Jun 10, 2019

An alternative take on #1219, based on the original attempt to fix that in #1339.

  • The zlib search flow is organized similarly to the readline one, and placed nearby.
  • The tests have been updated to account for the extra is_mac/uname call.

Fixes #1219
Closes #1339, #1333

@mikeroll mikeroll force-pushed the mojave-zlib branch 4 times, most recently from 99a5b5b to 3929ad7 Compare June 10, 2019 20:33
@Croydon
Copy link

Croydon commented Jun 11, 2019

This would also replace #1333

@joshfriend
Copy link
Member

Just checked this out and am getting clang compile commands like this:

clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -I. -I./Include -I/usr/local/opt/readline/include -I/usr/local/opt/readline/include -I/Users/josh/.pyenv/versions/3.7.3/include -I/usr/local/opt/icu4c/include -I/usr/local/opt/readline/include -I/usr/local/opt/readline/include -I/Users/josh/.pyenv/versions/3.7.3/include -I/usr/local/opt/icu4c/include -DPy_BUILD_CORE_BUILTIN -c ./Modules/hashtable.c -o Modules/hashtable.o

Which seems to correctly include the xcode sdk path from xcrun --show-sdk-path

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.

Install failed, "zlib not available" on macOS Mojave

3 participants