[CMake] PGO training data

Adding in a few more lit substitutions for cc1 and the test exec path.

llvm-svn: 256057
This commit is contained in:
Chris Bieneman 2015-12-18 23:00:57 +00:00
parent bae92fdb39
commit de879caeb8
1 changed files with 2 additions and 0 deletions

View File

@ -29,7 +29,9 @@ config.suffixes = ['.c', '.cpp', '.m', '.mm', '.cu', '.ll', '.cl', '.s', '.S', '
use_lit_shell = os.environ.get("LIT_USE_INTERNAL_SHELL")
config.test_format = lit.formats.ShTest(use_lit_shell == "0")
config.substitutions.append( ('%clang_cpp', ' %s --driver-mode=cpp %s ' % (config.clang, sysroot_flags)))
config.substitutions.append( ('%clang_cc1', ' %s --cc1 %s ' % (config.clang, sysroot_flags)))
config.substitutions.append( ('%clang', ' %s %s ' % (config.clang, sysroot_flags) ) )
config.substitutions.append( ('%test_root', config.test_exec_root ) )
config.environment['LLVM_PROFILE_FILE'] = 'perf-training-%p.profraw'