[PATCH] D116709: [CMake][WinMsvc] Fix user passed compiler/linker flags

Shoaib Meenai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 10 16:25:17 PST 2022


smeenai added a comment.

In D116709#3374131 <https://reviews.llvm.org/D116709#3374131>, @glandium wrote:

> Somehow this change broke cross compiling for 32-bit windows using WinMsvc.cmake. Cmake ends up adding /machine:x64 to the linker flags during one of its first checks, and that fails.

Hmm. Are you passing any `CMAKE_C_FLAGS` or `CMAKE_CXX_FLAGS` directly as part of your configuration? That'd make the `CMAKE_*_FLAGS_INIT` in this file be ignored.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116709/new/

https://reviews.llvm.org/D116709



More information about the llvm-commits mailing list