[PATCH] D37756: [lit] Force site configs to be run before source-tree configs

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 13 11:06:27 PDT 2017


MatzeB accepted this revision.
MatzeB added a comment.
This revision is now accepted and ready to land.

This turned out to be a simple directed change. Looks good to me.
(But maybe wait for further feedback).



================
Comment at: llvm/utils/lit/lit/discovery.py:43-49
+        config_map = litConfig.params.get('config_map')
+        if config_map:
+            cfgpath = os.path.normpath(cfgpath)
+            cfgpath = os.path.normcase(cfgpath)
+            target = config_map.get(cfgpath)
+            if target:
+                cfgpath = target
----------------
Add a comment to explain what we use this for.


https://reviews.llvm.org/D37756





More information about the llvm-commits mailing list