mehdi_amini added a comment.
In https://reviews.llvm.org/D30239#691972, @rnk wrote:
> Do you guys think that maybe -flto should imply -fuse-ld=lld, or is that too
> much magic?
I don't know enough about windows, but I would think it may be surprising for a
user that -flto changes the linker b
rnk added a comment.
Do you guys think that maybe -flto should imply -fuse-ld=lld, or is that too
much magic?
Repository:
rL LLVM
https://reviews.llvm.org/D30239
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-b
This revision was automatically updated to reflect the committed changes.
Closed by commit rL296373: enable -flto=thin in clang-cl (authored by
inglorion).
Changed prior to commit:
https://reviews.llvm.org/D30239?vs=89598&id=89913#toc
Repository:
rL LLVM
https://reviews.llvm.org/D30239
Fil
hans added a comment.
lgtm2
https://reviews.llvm.org/D30239
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
inglorion updated this revision to Diff 89598.
inglorion added a comment.
changed error message
https://reviews.llvm.org/D30239
Files:
include/clang/Basic/DiagnosticDriverKinds.td
include/clang/Driver/Options.td
lib/Driver/Driver.cpp
test/Driver/cl-options.c
Index: test/Driver/cl-opti
hans added inline comments.
Comment at: test/Driver/cl-options.c:532
+// RUN: %clang_cl -### -Fe%t.exe -entry:main -flto -- %s 2>&1 | FileCheck
-check-prefix=LTO-WITHOUT-LLD %s
+// LTO-WITHOUT-LLD: invalid argument '-flto' only allowed with '-fuse-ld=lld'
+
This
inglorion updated this revision to Diff 89590.
inglorion added a comment.
fail early with a friendlier message when using -flto without -fuse-ld=lld
https://reviews.llvm.org/D30239
Files:
include/clang/Driver/Options.td
lib/Driver/Driver.cpp
test/Driver/cl-options.c
Index: test/Driver/c
inglorion updated this revision to Diff 89583.
inglorion added a comment.
added missing --
https://reviews.llvm.org/D30239
Files:
include/clang/Driver/Options.td
test/Driver/cl-options.c
Index: test/Driver/cl-options.c
===
--
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 wi
hans accepted this revision.
hans added a comment.
This revision is now accepted and ready to land.
lgtm with a comment
Comment at: test/Driver/cl-options.c:525
+// RUN: %clang_cl -### /c -flto %s 2>&1 | FileCheck -check-prefix=LTO %s
+// LTO: -flto
This need
inglorion updated this revision to Diff 89577.
inglorion retitled this revision from "enable -flto=thin, -flto-jobs=, and
-fthinlto-index= in clang-cl" to "enable -flto=thin in clang-cl".
inglorion added a comment.
Implemented @hans's suggestion of moving the tests into cl-options.c.
Also restri
11 matches
Mail list logo