[all-commits] [llvm/llvm-project] 289828: [Driver][MSVC] Move lld specific flags before inputs

HaohaiWen via All-commits all-commits at lists.llvm.org
Sat Jul 1 18:29:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 289828b1c0a6bc6eed8a634376a5152adae2283b
      https://github.com/llvm/llvm-project/commit/289828b1c0a6bc6eed8a634376a5152adae2283b
  Author: Haohai Wen <haohai.wen at intel.com>
  Date:   2023-07-02 (Sun, 02 Jul 2023)

  Changed paths:
    M clang/lib/Driver/ToolChains/MSVC.cpp
    M clang/test/Driver/msvc-link.c

  Log Message:
  -----------
  [Driver][MSVC] Move lld specific flags before inputs

Check linker earlier so that lld specific flags can be append before
inputs. Just like position of other flags. The intention is to make
expanded cmd more consistent and elegent so that user can easily
look for inputs when using -###.

Reviewed By: mstorsjo

Differential Revision: https://reviews.llvm.org/D154176




More information about the All-commits mailing list