swiftlang/swift

[SR-2489] -resource-dir lib/swift/macosx should be treated as -resource-dir lib/swift/

Open

#45,094 opened on Aug 25, 2016

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Swift (10,719 forks)batch import
compilergood first issueimprovementlegacy driver

Repository metrics

Stars
 (69,989 stars)
PR merge metrics
 (Avg merge 8d 17h) (510 merged PRs in 30d)

Description

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).

Contributor guide