swiftlang/swift
在 GitHub 查看[SR-2489] -resource-dir lib/swift/macosx should be treated as -resource-dir lib/swift/
Open
#45,094 创建于 2016年8月25日
compilergood first issueimprovementlegacy driver
描述
| Previous ID | SR-2489 |
| Radar | None |
| Original Reporter | @belkadan |
| Type | Improvement |
| Votes | 0 |
| Component/s | Compiler |
| Labels | Improvement, Driver, StarterBug |
| Assignee | None |
| Priority | Medium |
md5: 55654e442cde4ed3e942cc7a23ba8985
Issue Description:
Although -resource-dir is pretty much only useful for people working on the compiler, it's a common mistake to pass a particular platform directory (like lib/swift/macosx/) instead of the whole thing (lib/swift/). The Swift driver could check for this (by looking for something that ought to be in lib/swift/) and popping up to the parent directory if it doesn't find it (with a warning).