aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGen.cpp
diff options
context:
space:
mode:
authorFelipe de Azevedo Piovezan <fpiovezan@apple.com>2022-08-23 11:11:06 -0400
committerFelipe de Azevedo Piovezan <fpiovezan@apple.com>2022-08-26 06:52:40 -0400
commitbb26ebb4d18c1877cc6fd17aa803609abeb95096 (patch)
treebd94fd6d98b126c955a187e8fb7ec7e6542934ad /llvm/lib/CodeGen/CodeGen.cpp
parent88c7b16bede8a0b070fd74f05e0ae88833629e5b (diff)
downloadllvm-bb26ebb4d18c1877cc6fd17aa803609abeb95096.zip
llvm-bb26ebb4d18c1877cc6fd17aa803609abeb95096.tar.gz
llvm-bb26ebb4d18c1877cc6fd17aa803609abeb95096.tar.bz2
[lldb] Fix dotest argument order
When running LLDB API tests, a user can override test arguments with LLDB_TEST_USER_ARGS. However, these flags used to be concatenated with a CMake-derived variable LLDB_TEST_COMMON_ARGS, as below: ``` set(LLDB_DOTEST_ARGS ${LLDB_TEST_COMMON_ARGS};${LLDB_TEST_USER_ARGS} CACHE INTERNAL STRING) ``` This is problematic, because LLDB_TEST_COMMON_ARGS must be processed first, while LLDB_TEST_USER_ARGS args must be processed last, so that user overrides are respected. Currently, if a user attempts to override one of the "inferred" flags, the user's request is ignored. This is the case, for example, with `--libcxx-include-dir` and `--libcxx-library-dir`. Both flags are needed by the greendragon bots. This commit removes the concatenation above, keeping the two original variables throughout the entire flow, processing the user's flag last. The variable LLDB_TEST_COMMON_ARGS needs to be a CACHE property, but it is modified throughout the CMake file with `set` or `list` or `string` commands, which don't work with properties. As such, a temporary variable `LLDB_TEST_COMMON_ARGS_VAR` is created. This was tested locally by invoking CMake with: -DLLDB_TEST_USER_ARGS="--libcxx-include-dir=blah --libcxx-library-dir=blah2" and checking that tests failed appropriately. Differential Revision: https://reviews.llvm.org/D132642
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions