[all-commits] [llvm/llvm-project] c1343a: [clang] [Driver] Ensure we error on lto with link....
Max Winkler via All-commits
all-commits at lists.llvm.org
Wed Oct 2 19:17:06 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c1343a29216f08ec762b3e58572e5c3e41f6f285
https://github.com/llvm/llvm-project/commit/c1343a29216f08ec762b3e58572e5c3e41f6f285
Author: Max Winkler <max.enrico.winkler at gmail.com>
Date: 2024-10-02 (Wed, 02 Oct 2024)
Changed paths:
M clang/lib/Driver/Driver.cpp
M clang/test/Driver/cl-options.c
M clang/test/Driver/clang_f_opts.c
M clang/test/Driver/lto.c
M clang/test/Driver/thinlto.c
M clang/test/Driver/thinlto.cu
Log Message:
-----------
[clang] [Driver] Ensure we error on lto with link.exe and target `*-windows-msvc` on non cl driver modes (#109607)
Similar to previous PRs I've done to change some `IsCLMode` checks to
`isWindowsMSVCEnvironment`.
I stumbled into this one accidentally last week. I did some greps and I
think this is the last one for now. All the remaining `IsCLMode` checks
are only valid for the cl driver mode.
For the `*-windows-msvc` target MSVC link.exe and lld are supported. LTO
isn't supported with MSVC link.exe and so we error when lto is enabled
but MSVC link.exe is being used. However we only error if the driver
mode is cl.
If we are using the clang driver with the `*-windows-msvc` target then
ensure an error is also emitted when LTO and MSVC link.exe are used
together.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list