[cfe-commits] [Review request] CMake: Add the new option "LLVM_LIT_ARGS"
Óscar Fuentes
ofv at wanadoo.es
Wed Nov 10 19:57:13 PST 2010
NAKAMURA Takumi <geek4civic at gmail.com> writes:
> Good morning, Oscar.
>
> I have tried your advices, thank you, but I gave up. :(
> I am convinced there might be no way for CMake to expand
> whitespace-separated-STRING to COMMAND without quote.
>
> At now, I have two-way patches.
>
> * 0001-llvm-LLVM_LIT_ARGS.patch
> * 0001-clang-LLVM_LIT_ARGS.patch
>
> I got rid of separate_arguments(UNIX_COMMAND) but still I take
> separate_arguments() to split whitespace-separated-STRING. It simply
> must substitute space to semicolon.
>
> * 0001-llvm-LLVM_LIT_ARGS-semicolon.patch
> * 0001-clang-LLVM_LIT_ARGS-semicolon.patch
>
> These patches might be suitable to CMake's philosophy. LLVM_LIT_ARGS
> should have semicolon-separated list.
> (eg. "-s;-v;--no-progress-bar")
> I wonder it might be unusual way against shell/make's sense.
>
> ps. I saw '-s -v' was expanded to '-s\ -v'.
I see. AFAIK CMake's evaluation model is loosely inspired by Tcl's and
it brings in its own incarnation of quoting hell.
Okay, commit the version that uses the usual shell syntax
(-DLLVM_LIT_ARGS="-s -v") Those parameters are for lit, not for cmake,
and hence it is reasonable to use the same syntax that one would use if
lit were invoked directly from the shell.
Thanks for trying so hard.
More information about the cfe-commits
mailing list