diff options
author | Yuhang Zhao <2546789017@qq.com> | 2022-08-25 16:56:23 +0800 |
---|---|---|
committer | Yuhang Zhao <2546789017@qq.com> | 2022-08-29 19:23:19 +0800 |
commit | 49f9cadb52b5ef29e527b60c3881cb15a69c1625 (patch) | |
tree | dd271e39e8f9f4d6ba2bcb30bf4897b18c82a2d6 /src/tools | |
parent | 22662d7dba89794075d3bc3355ba128481e68a6d (diff) |
MSVC: Add WIN32 definition to the resource compiler
The resource compiler may not use the same parameters as we passed
to CL, and if so, there won't be any definition for WIN32, this will
cause some header files think we are not building for Windows. To
eliminate this uncertainty, we just pass "/DWIN32" to the resource
compiler to let it have this definition unconditionally. It won't
hurt in any case anyway. And this parameter is also hard-coded in
vcpkg's Windows toolchain by default, so it should be safe.
Change-Id: I45c42c40de8f4ab75fee219832f84d22b653af31
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/tools')
0 files changed, 0 insertions, 0 deletions