]> granicus.if.org Git - clang/commit
clang-cl: Expose the -flto option
authorHans Wennborg <hans@hanshq.net>
Tue, 4 Oct 2016 21:00:57 +0000 (21:00 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 4 Oct 2016 21:00:57 +0000 (21:00 +0000)
commit2ca3724b005203a78f37a55cbafd792d8058678f
treea5b14c46d560725e68e3bb4bcce1065afb253c60
parent27ae90e4fe25c0d9c99ec5ec22574e212d2591d2
clang-cl: Expose the -flto option

We could hook up /GL as an alias for -flto, but that might be
confusing, as clang-cl in that mode would not be drop-in compatible
with cl.exe /GL, as it requires the linker to be lld.

Exposing -flto seems like a less confusing way to expose this
functionality.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@283255 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Options.td
test/Driver/cl-options.c