This merges the static and shared library and behaves as if
-search_paths_first was specified which is also the default beahviour
on ld64 (and now lld). Unify the paths, and use llvm::sys::path to
deal with the path to be truly agnostic to the host.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lld/MachO/Driver.cpp | ||
---|---|---|
79 | PATH_MAX is different from MAX_PATH ... 260 is the larger of the two and there is no macro to unify the two spellings on different platforms. | |
85 | That was not checked for previously, why introduce that with this change? | |
lld/test/MachO/link-search-order.s | ||
17 | I think that the existing check for the static archive covers that part of the test. Arguably, because this change is about cleaning up that path, it _could_ make sense to remove the test case from the change and do the testing improvements later. What case is it that is missing testing? |
You need to retain Reviewed by: and Differential Revision: to close the revision automatically when you push the commit to master.
arcfilter () { arc amend git log -1 --pretty=%B | awk '/Reviewers:|Subscribers:/{p=1} /Reviewed By:|Differential Revision:/{p=0} !p && !/^Summary:$/ {sub(/^Summary: /,"");print}' | git commit --amend --date=now -F - }
Reviewed By: is considered important by some people (https://lists.llvm.org/pipermail/llvm-dev/2020-January/137889.html). You should keep the tag. (I started to use --date=now because some people find author date != committer date annoying. The committer date is usually what people care.))
Nit: I'd rather see PATH_MAX, but literal ints like this are the norm.