[all-commits] [llvm/llvm-project] 0a4c6c: [clang] Allow using -rtlib=platform to switching t...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Wed Aug 24 01:46:56 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0a4c6c9f98a6dd5f12b8ff55c60f446b75958ac7
      https://github.com/llvm/llvm-project/commit/0a4c6c9f98a6dd5f12b8ff55c60f446b75958ac7
  Author: Martin Storsjö <martin at martin.st>
  Date:   2022-08-24 (Wed, 24 Aug 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/CommonArgs.cpp
    M clang/lib/Driver/ToolChains/Darwin.cpp
    M clang/test/Driver/msvc-compiler-rt.c
    A clang/test/Driver/rtlib-darwin.c

  Log Message:
  -----------
  [clang] Allow using -rtlib=platform to switching to the default rtlib on all targets

Normally, passing -rtlib=platform overrides any earlier -rtlib
options, and overrides any hardcoded CLANG_DEFAULT_RTLIB option.
However, some targets, MSVC and Darwin, have custom logic for
disallowing specific -rtlib= option values; amend these checks for
allowing the -rtlib=platform option.

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




More information about the All-commits mailing list