[llvm] [cmake] Add possibility to use ChooseMSVCCRT.cmake when include LLVM library
[llvm-core.git] / utils / lit / tests / Inputs / config-map-discovery / driver.py
blobdb9141b9b1bf9ed0333a8a49ad0148259764becf
1 import lit.util
2 import os
3 import sys
5 main_config = sys.argv[1]
6 main_config = os.path.realpath(main_config)
7 main_config = os.path.normcase(main_config)
9 config_map = {main_config : sys.argv[2]}
10 builtin_parameters = {'config_map' : config_map}
12 if __name__=='__main__':
13 from lit.main import main
14 main_config_dir = os.path.dirname(main_config)
15 sys.argv = [sys.argv[0]] + sys.argv[3:] + [main_config_dir]
16 main(builtin_parameters)