kylef / heroku-buildpack-swift

Heroku build pack for Swift
BSD 3-Clause "New" or "Revised" License
508 stars 0 forks source link

Add swift-bin to library path #8

Closed ikenwoo closed 8 years ago

ikenwoo commented 8 years ago

Adding .swift-bin to the library build path so that dynamic libraries built by swift package manager can be loaded.

This will resolve #7.

briancroom commented 8 years ago

Alternatively, perhaps the step that copies the built products should be smarter, and be sure to put shared libraries into .swift-lib, where they really belong?

kylef commented 8 years ago

I agree with @briancroom, the shared libraries belong in the lib folder and not bin. We should copy the files from .build/release with the file extension .so into the lib directory.

As a separate step, we can make it so that only executable files are copied into the bin directory, so only the binaries should end up there.

@iKenWoo Would you be willing to update the PR so that we instead copy the .so files into the lib directory?

ikenwoo commented 8 years ago

sure i'll make that change

ikenwoo commented 8 years ago

Changed it so that .so files in .build/release are copied to .swift-lib and to exclude .so files when copying executable files into swift-bin.

Also removed swift-bin from the library path.

kylef commented 8 years ago

Perfect, thanks @iKenWoo