This is an archive of the discontinued LLVM Phabricator instance.

Object: replace backslashes with slashes in embedded relative thin archive paths on Windows.
ClosedPublic

Authored by pcc on Nov 15 2016, 1:24 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc updated this revision to Diff 78063.Nov 15 2016, 1:24 PM
pcc retitled this revision from to Object: replace backslashes with slashes in embedded relative thin archive paths on Windows..
pcc updated this object.
pcc added reviewers: ruiu, rafael.
pcc added a subscriber: llvm-commits.
ruiu accepted this revision.Nov 15 2016, 1:32 PM
ruiu edited edge metadata.

LGTM

As a side note, I like the way how Go standard library handles pathnames. In that language, '/' is always a path separator even on Windows, and that makes a lot of things much easier.

This revision is now accepted and ready to land.Nov 15 2016, 1:32 PM
This revision was automatically updated to reflect the committed changes.
grimar added a subscriber: grimar.Nov 15 2016, 11:55 PM

We had similar change in LLD, but did not use LLVM_ON_WIN32 define. May be it can be eliminated ?

davide added a subscriber: davide.Nov 15 2016, 11:57 PM

We had similar change in LLD, but did not use LLVM_ON_WIN32 define. May be it can be eliminated ?

There's no point in replacing on *NIX as / is naturally the path separator there.

We had similar change in LLD, but did not use LLVM_ON_WIN32 define. May be it can be eliminated ?

There's no point in replacing on *NIX as / is naturally the path separator there.

Yeah, I know. I mean that just helps to avoid use of define. Was just a suggestion, since we do in that way in LLD.