Skip to content
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

feat: support linuxbrew installed zlib headers #71

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chenrui333
Copy link

  /tmp/xclogparser-20241217-6857-xho898/XCLogParser-0.2.40/.build/checkouts/GzipSwift/Sources/system-zlib/include/module.modulemap:2:12: error: header '/usr/include/zlib.h' not found
  1 | module zlibLinux [system] {
  2 |     header "/usr/include/zlib.h"
    |            `- error: header '/usr/include/zlib.h' not found
  3 |     header "/usr/include/zconf.h"
  4 |     link "z"
  
  /tmp/xclogparser-20241217-6857-xho898/XCLogParser-0.2.40/.build/checkouts/GzipSwift/Sources/Gzip/Data+Gzip.swift:32:12: error: could not build C module 'zlibLinux'
   30 | 
   31 | #if os(Linux)
   32 |     import zlibLinux
      |            `- error: could not build C module 'zlibLinux'
   33 | #else
   34 |     import zlib

linuxbrew (which is homebrew for linux) actually installs the zlib headers in ${brew --prefix}, thus adding a zlibHomebrew module lookup.

I am new to this, open for better thoughts. Thanks!

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.

1 participant