[libcxx-commits] [libcxx] 14d2d8c - Allow site-specific test_exec_root.

Dan Albert via libcxx-commits libcxx-commits at lists.llvm.org
Fri Mar 13 12:24:00 PDT 2020


Author: Dan Albert
Date: 2020-03-13T12:23:49-07:00
New Revision: 14d2d8c9761bd822e42837bf817bf05074845aba

URL: https://github.com/llvm/llvm-project/commit/14d2d8c9761bd822e42837bf817bf05074845aba
DIFF: https://github.com/llvm/llvm-project/commit/14d2d8c9761bd822e42837bf817bf05074845aba.diff

LOG: Allow site-specific test_exec_root.

Reviewers: EricWF, mclow.lists, #libc, ldionne

Reviewed By: #libc, ldionne

Subscribers: dexonsmith, ldionne, libcxx-commits

Tags: #libc

Differential Revision: https://reviews.llvm.org/D76092

Added: 
    

Modified: 
    libcxx/test/lit.cfg

Removed: 
    


################################################################################
diff  --git a/libcxx/test/lit.cfg b/libcxx/test/lit.cfg
index c54f0a01047c..ed5aa29d9175 100644
--- a/libcxx/test/lit.cfg
+++ b/libcxx/test/lit.cfg
@@ -38,7 +38,8 @@ if obj_root is None:
         lit_config.warning('Creating temporary directory for object root: %s' %
                            obj_root)
 
-config.test_exec_root = os.path.join(obj_root, 'test')
+if not config.test_exec_root:
+    config.test_exec_root = os.path.join(obj_root, 'test')
 
 cfg_variant = getattr(config, 'configuration_variant', 'libcxx')
 if cfg_variant:


        


More information about the libcxx-commits mailing list