Displaying 2 results from an estimated 2 matches for "joinedorsepar".
2019 Jan 09
6
[llvm-rc] absolute.test failing
...u run it with a file
that starts with "/c."
These will fail:
llvm-rc /crawl/through/some/path/to/my.rc
llvm-rc /c/some/path/to/my.rc
The option parser ends up interpreting "/" as an option prefix and then
the parser matches it to this in tools/llvm-rc/Opts.td:
def CODEPAGE : JoinedOrSeparate<[ "/", "-" ], "C">,
HelpText<"Set the codepage used for input strings.">;
The test then fails with:
Exactly one input file should be provided.
The same problem happens with files that begin with "/r"
(/read/the/path...
2017 Oct 24
2
llvm-rc option parsing
...oping to use
llvm-rc for that portion.
cmake invokes the resource compiler with arguments joined to their options
(e.g. `/D_WIN32`, `/fofoo.res`, etc.), which rc.exe supports, but llvm-rc
expects arguments to be separate. It's simple enough to change that, of
course; just change `Separate` to `JoinedOrSeparate` in the options tabledef.
Unfortunately, that then causes problems with Unix-style absolute paths; for
example, on macOS, `/Users/...` would be interpreted as a macro undefine
rather than a path.
clang-cl has similar issues, and supports such paths by treating anything
after a `--` as a path. (...