[PATCH] D30239: enable -flto=thin in clang-cl

Bob Haarman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 23 16:01:43 PST 2017


inglorion added inline comments.


================
Comment at: test/Driver/cl-options.c:525
 
+// RUN: %clang_cl -### /c -flto %s 2>&1 | FileCheck -check-prefix=LTO %s
+// LTO: -flto
----------------
hans wrote:
> This needs `--` before `%s`, otherwise if `%s` expands to e.g. `/Users/foo` it will be interpreted as the `/U` option :-)
> 
> Same thing below.
Good catch. That's what I get for not copy-pasting it. ;-)


https://reviews.llvm.org/D30239





More information about the cfe-commits mailing list