import os
import platform
import re
+import subprocess
import lit.formats
import lit.util
lit_config.fatal('No site specific configuration available!')
# Get the source and object roots.
- llvm_src_root = lit.util.capture(['llvm-config', '--src-root']).strip()
- llvm_obj_root = lit.util.capture(['llvm-config', '--obj-root']).strip()
+ llvm_src_root = subprocess.check_output(['llvm-config', '--src-root']).decode("utf-8").strip()
+ llvm_obj_root = subprocess.check_output(['llvm-config', '--obj-root']).decode("utf-8").strip()
+
polly_src_root = os.path.join(llvm_src_root, "tools", "polly")
polly_obj_root = os.path.join(llvm_obj_root, "tools", "polly")