Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

Update Package.swift #4

Merged
merged 1 commit into from
Apr 20, 2021
Merged

Update Package.swift #4

merged 1 commit into from
Apr 20, 2021

Conversation

compnerd
Copy link
Contributor

Silence an annoying warning about pkg-config. pkg-config is not portable, and system dependencies are just as unportable. Windows requires manual dependency management and does not have a standard tool for locating system wide libraries. Instead, the user is expected to provide proper flags. This removes the pkg-config and brew based package dependency tracking for Windows.

Instead, users should build using something along the lines of:

swift build -Xcc -IS:\Library\libxml2-development\usr\include -Xcc -IS:\Library\libxml2-development\usr\include\libxml2 -Xlinker -LS:\Library\libxml2-development\usr\lib

Silence an annoying warning about pkg-config.  `pkg-config` is not portable, and system dependencies are just as unportable.  Windows requires manual dependency management and does not have a standard tool for locating system wide libraries.  Instead, the user is expected to provide proper flags.  This removes the pkg-config and brew based package dependency tracking for Windows.

Instead, users should build using something along the lines of:
```
swift build -Xcc -IS:\Library\libxml2-development\usr\include -Xcc -IS:\Library\libxml2-development\usr\include\libxml2 -Xlinker -LS:\Library\libxml2-development\usr\lib
```
@mattt mattt merged commit 9eb63e2 into SwiftDocOrg:main Apr 20, 2021
@mattt
Copy link
Contributor

mattt commented Apr 20, 2021

Thanks, @compnerd! I'll cut a new release once I get the rest of your PRs merged.

@mattt
Copy link
Contributor

mattt commented Apr 20, 2021

This is now available in version 0.1.1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants