https://bugs.llvm.org/show_bug.cgi?id=39025
Bug ID: 39025
Summary: Don't automatically convert to forward slashes in
Windows paths
Product: tools
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: llvm-ar
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
At the moment, llvm-ar converts '\' to '/' in Windows relative file paths when
adding thin archive members. However, '\' is the normal separator on Windows.
Ideally, we should use '\' all the time, but this would make testing using
llvm-ar somewhat tricky to make platform-independent, due to the need to handle
paths in either direction, so we may need to consider a rule, such as switch to
backslash, if there is at least one such separator in the path, otherwise
preserve as forward slash.
Example:
C:\foo\bar -> C:\foo\bar
C:\foo/bar -> C:\foo\bar
C:/foo/bar -> C:/foo/bar
Note that llvm-ar currently does not attempt to normalise slash direction in
absolute paths. It should probably do so, for both absolute or relative,
regardless of the slashes used within the path.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs