summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2019-04-13 20:44:42 +0200
committerJan Ekström <jeebjp@gmail.com>2019-07-21 18:13:07 +0300
commit76858ba91ce242ac8fb40f2787934e1e3e1fa51b (patch)
tree51f0aef33f4796ef9ae5ed1515bb46d83c921941 /wscript
parentbc014f2ad43d476730261d181475ec60e9dcdbae (diff)
downloadmpv-76858ba91ce242ac8fb40f2787934e1e3e1fa51b.tar.bz2
mpv-76858ba91ce242ac8fb40f2787934e1e3e1fa51b.tar.xz
build: add support for Swift toolchains not provided by Apple
the xcode-select tool only properly works with Apple provided toolchains but not with third party ones from swift.org. in the latter case the swift compiler executable is found in the proper path but the swift libs from the xcode or command line tools will be picked. this leads to a not wanted discrepancy of the swift compiler and libs and possible errors. instead of relying on the xcode-select tool search for the libs relative to the swift executable. that relative path seems to be the same for all toolchains. if for any reasons a swift executable is not found in the relative path, fall back to the old xcode-select method. furthermore, both static and dynamic libs will be searched for but only the former will be used for now. this is a preparation for the upcoming swift 5 migration.
Diffstat (limited to 'wscript')
0 files changed, 0 insertions, 0 deletions