You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
swift build -X -Xcc -I/usr/local/include -Xlinker -L/usr/local/lib
Which would add the correct paths to Xcode configuration automatically.
This also makes sense cause this is the command needed to actually build the module.
swift build -Xcc -I/usr/local/include -Xlinker -L/usr/local/lib
Attachment: Download
Additional Detail from JIRA
md5: 43eab0fe11fa0e3134b2edf88b3d51e7
Issue Description:
The command swift build -X doesn't work for system packages.
For example:
git clone https://github.com/Zewo/OpenSSL
cd OpenSSL
swift build -X
Now open OpenSSL.xcodeproj. Build will fail.
To make it work we need to add some configurations manually:
/usr/local/include in Build Settings > Search Paths > Header Search Paths
/usr/local/lib in Build Settings > Search Paths > Library Search Paths
I think the solution would be to support:
swift build -X -Xcc -I/usr/local/include -Xlinker -L/usr/local/lib
Which would add the correct paths to Xcode configuration automatically.
This also makes sense cause this is the command needed to actually build the module.
swift build -Xcc -I/usr/local/include -Xlinker -L/usr/local/lib
CC: @ddunbar
Edit: I think #235 is needed to reproduce.
The text was updated successfully, but these errors were encountered: