diff --git a/test/lit.cfg b/test/lit.cfg index 9847d607b..242861368 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -92,7 +92,7 @@ class LibcxxTestFormat(lit.formats.FileBasedTest): return self._evaluate_test(test, lit_config) def _build(self, exec_path, source_path, compile_only=False): - cmd = [self.cxx_under_test, self.cxx_under_test, '-o', exec_path, + cmd = [self.cxx_under_test, '-o', exec_path, source_path] + self.cpp_flags if compile_only: cmd += ['-c']