[update_cc_test_checks.py] Pass the builtin include dir to clang
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Thu, 31 Oct 2019 21:18:32 +0000 (21:18 +0000)
committerAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Thu, 31 Oct 2019 21:18:33 +0000 (21:18 +0000)
commitd9cc7d14085a9c7d3f04380d974160be759a09eb
tree32dfcfa63ca3891cff9b082e67cabecd161669ac
parent8baedb82bafe2a9efb341b6207238b2af0f1ce07
[update_cc_test_checks.py] Pass the builtin include dir to clang

Summary:
This is required to update tests that make use of builtin headers. To fix
this use the same command expansion as lit does for %clang_cc1. I tested
this by updating clang/test/CodeGen/arm-mve-intrinsics/scalar-shifts.c.
%clang_cc1 will now expand to `clang -cc1 -internal-isystem
$LLVM_BUILD/lib/clang/$VERSION/include -nostdsysteminc`.

Reviewers: MaskRay

Reviewed By: MaskRay

Subscribers: kristof.beyls, dmgreen, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D69611
llvm/utils/update_cc_test_checks.py