diff options
author | Hafiz Abid Qadeer <abidh@codesourcery.com> | 2020-12-08 11:46:36 +0000 |
---|---|---|
committer | Hafiz Abid Qadeer <abidh@codesourcery.com> | 2020-12-08 11:46:36 +0000 |
commit | deec343bfd85d7c78fb0d8e251e63f372767297d (patch) | |
tree | d378ad00bb67e8008d52709dfb4ffd71167c95eb /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | cda32aba4f46033eea4eea6eda703459dc3c7a1e (diff) | |
download | llvm-deec343bfd85d7c78fb0d8e251e63f372767297d.zip llvm-deec343bfd85d7c78fb0d8e251e63f372767297d.tar.gz llvm-deec343bfd85d7c78fb0d8e251e63f372767297d.tar.bz2 |
[compiler-rt] Allow appending to 'target_cflags' value from lit_config.
This patch is similar to D84708. When testing compiler-rt on different
baremetal targets, it helps to have the ability to pass some more parameters
at test time that allows you to build the test executable for a
given target. For an example, you may need a different linker command
file for different targets.
This patch will allows to do things like
$ llvm-lit --param=append_target_cflags="-T simulator.ld"
or
$ llvm-lit --param=append_target_cflags="-T hardware.ld"
In this way, you can run tests on different targets without having to run
cmake again.
Reviewed By: delcypher
Differential Revision: https://reviews.llvm.org/D91783
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions