Missing `lit` config file after swift compiler build

Executing lit directly with Python will not make the CMake dependencies system rebuild the necessary parts.

The recommended ways in the the guide are using run-test or CMake. Using lit.py directly is part of the guide, but one needs to have setup the build before using it, or most of the dependencies would not be built.

The line hamishknight provides using ninja is basically what run-test and CMake will do for you. There's a target check-swift-… which depends on swift-…-test-depends. The lit.site.cfg that needed to be generated and the new lit.swift-features.cfg are part of swift-…-test-depends. When one uses CMake to start the tests, they will be rebuild and regenerated. When one uses lit.py directly, you are skipping all the dependencies.

1 Like