diff options
author | Martin Nowack <m.nowack@imperial.ac.uk> | 2023-10-12 10:32:32 +0100 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2024-02-08 13:17:19 +0000 |
commit | ef4b8d817181f42d99a2c9664367d60fc3a74c05 (patch) | |
tree | 96567bb3105c054678999ab0ebd64fc7743c3882 /test/lit.cfg | |
parent | f27b748ba2be259177aa672e4d5fc39d36479c7f (diff) | |
download | klee-ef4b8d817181f42d99a2c9664367d60fc3a74c05.tar.gz |
Replace `%libcxx_include` with `%libcxx_includes` for multi-include directories
To support multiple include directories for c++ header files, use `%libcxx_includes`. This string contains the `-I` compiler directive for each include path as well. Update test cases to use new directive.
Diffstat (limited to 'test/lit.cfg')
-rw-r--r-- | test/lit.cfg | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/lit.cfg b/test/lit.cfg index 52869d34..0f7548d1 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -162,8 +162,11 @@ config.substitutions.append( ('%gentmp', os.path.join(klee_src_root, 'scripts/genTempFiles.sh')) ) +# Prepare the full include expression, i.e. for all given paths. For example, ["path1","path2"] +# becomes "-I path1 -I path2" config.substitutions.append( - ('%libcxx_include', getattr(config, 'libcxx_include_dir', None))) + ('%libcxx_includes', " ".join( ["-I "+ p for p in getattr(config, 'libcxx_include_dirs', [])] )) + ) # Add feature for the LLVM version in use, so it can be tested in REQUIRES and # XFAIL checks. We also add "not-XXX" variants, for the same reason. |