diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2023-09-27 19:54:35 +0300 |
---|---|---|
committer | Jia Tan <jiat0218@gmail.com> | 2023-10-31 18:44:59 +0800 |
commit | 38171492ded6426ddf53d0c200fa8c93fcd02a60 (patch) | |
tree | f1bbc40e86f2c5c3b4b5b70f3e6c5c6aa9f4dae6 /windows | |
parent | liblzma: Avoid compiler warning without creating extra symbol. (diff) | |
download | xz-38171492ded6426ddf53d0c200fa8c93fcd02a60.tar.xz |
CMake: Fix Windows build with Clang/LLVM 17.
llvm-windres 17.0.0 has more accurate emulation of GNU windres, so
the hack for GNU windres must now be used with llvm-windres too.
LLVM 16.0.6 has the old behavior and there likely won't be more
16.x releases. So we can simply check for >= 17.0.0.
The workaround must not be used with Clang that is acting in
MSVC mode. This checks for the known environments that need
the workaround instead of using "NOT MSVC".
See also:
https://github.com/llvm/llvm-project/commit/2bcc0fdc58a220cb9921b47ec8a32c85f2511a47
Diffstat (limited to 'windows')
0 files changed, 0 insertions, 0 deletions