[PATCH] D68863: [LNT] Python 3 support: don't assume order of cmake args
Thomas Preud'homme via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 11 09:24:20 PST 2019
thopre added inline comments.
================
Comment at: tests/runtest/test_suite-cache.shtest:18
+# RUN: FileCheck --check-prefix CHECK-CACHE1 < %t.cmake-cache.log %s
+# CHECK-CACHE1: Execute: {{.*}}cmake {{(.+ )?}}-DCMAKE_CXX_COMPILER:FILEPATH={{.*}}/FakeCompilers/clang++-r154331
+# RUN: FileCheck --check-prefix CHECK-CACHE2 < %t.cmake-cache.log %s
----------------
rogfer01 wrote:
> My reading from this
>
> ```lang=python
> for key in ['CMAKE_C_COMPILER:FILEPATH',
> 'CMAKE_CXX_COMPILER:FILEPATH']:
> value = defs.pop(key, None)
> if value is not None:
> early_defs[key] = value
>
> cmake_cmd = ([cmake_cmd] +
> ['-D%s=%s' % (k, v) for k, v in early_defs.items()] +
> cmake_flags + [self._test_suite_dir()] +
> ['-D%s=%s' % (k, v) for k, v in defs.items()])
> ```
>
> is that we may still want to check that the compilers and the cache appear in the specific order (right after the `cmake`).
>
> The other ones, whose order is unpredictable, (`-DFOO=BAR`, `-DBAR=BAZ`) we do want to check them individually,
>
> Does this make sense?
It does, good catch! How about now?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68863/new/
https://reviews.llvm.org/D68863
More information about the llvm-commits
mailing list