[lit] Pass LLVM_PROFILE_FILE environment
authorTobias Hieta <tobias@hieta.se>
Wed, 8 Feb 2023 08:20:47 +0000 (09:20 +0100)
committerTobias Hieta <tobias@hieta.se>
Wed, 8 Feb 2023 09:14:16 +0000 (10:14 +0100)
When building a PGO version of LLVM you might want to customize
the output profile file when building tests. For this to work
we need to pass LLVM_PROFILE_FILE enviroment.

Reviewed By: abrachet

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

llvm/utils/lit/lit/TestingConfig.py

index c86f27e..6995a9a 100644 (file)
@@ -30,6 +30,7 @@ class TestingConfig(object):
             'LLDB',
             'LD_PRELOAD',
             'LLVM_SYMBOLIZER_PATH',
+            'LLVM_PROFILE_FILE',
             'ASAN_SYMBOLIZER_PATH',
             'HWASAN_SYMBOLIZER_PATH',
             'LSAN_SYMBOLIZER_PATH',