HomePhabricator

Don't use sysroot/include when sysroot is empty.

Authored by abidh on Dec 4 2020, 9:45 AM.

Description

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

Details

Committed
abidhDec 4 2020, 10:33 AM
Reviewer
jroelofs
Differential Revision
D92176: Don't use sysroot/include when sysroot is empty.
Parents
rGe60f2cbd0cd8: [libc] add tests to WrapperGen
Branches
Unknown
Tags
Unknown