[all-commits] [llvm/llvm-project] ca2888: Don't use sysroot/include when sysroot is empty.

abidh via All-commits all-commits at lists.llvm.org
Fri Dec 4 10:34:19 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ca2888310b245d0532d989685a090ae373ee3f93
      https://github.com/llvm/llvm-project/commit/ca2888310b245d0532d989685a090ae373ee3f93
  Author: Hafiz Abid Qadeer <abidh at codesourcery.com>
  Date:   2020-12-04 (Fri, 04 Dec 2020)

  Changed paths:
    M clang/lib/Driver/ToolChains/BareMetal.cpp
    M clang/test/Driver/baremetal.cpp

  Log Message:
  -----------
  Don't use sysroot/include when sysroot is empty.

Baremetal toolchain add Driver.SysRoot/include to the system include
paths without checking if Driver.SysRoot is empty. This resulted in
"-internal-isystem" "include" in the command. This patch adds check for
empty sysroot.

Reviewed By: jroelofs

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




More information about the All-commits mailing list