[all-commits] [llvm/llvm-project] d6d300: [CMake][WinMsvc] Fix user passed compiler/linker f...
Yuanfang Chen via All-commits
all-commits at lists.llvm.org
Fri Jan 7 16:35:29 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d6d3000a2f6d88ac73e5d4da4005ceadec788a9a
https://github.com/llvm/llvm-project/commit/d6d3000a2f6d88ac73e5d4da4005ceadec788a9a
Author: Yuanfang Chen <yuanfang.chen at sony.com>
Date: 2022-01-07 (Fri, 07 Jan 2022)
Changed paths:
M llvm/cmake/platforms/WinMsvc.cmake
Log Message:
-----------
[CMake][WinMsvc] Fix user passed compiler/linker flags
Users could pass flags by environment variables like CFLAGS/CXXFLAGS/LDFLAGS
or by using CMAKE_<LANG>_FLAGS_INIT/CMAKE_<t>_LINKER_FLAGS_INIT. So this
toolchain file should append to INIT flags instead. Otherwise, user
flags would be discarded here by assigning to CMAKE_<LANG>_FLAGS
directly.
Reviewed By: smeenai, mstorsjo
Differential Revision: https://reviews.llvm.org/D116709
More information about the All-commits
mailing list