r307201 - Fix one more reference to lit.util.capture()
Michael Zolotukhin via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 5 14:06:12 PDT 2017
Author: mzolotukhin
Date: Wed Jul 5 14:06:11 2017
New Revision: 307201
URL: http://llvm.org/viewvc/llvm-project?rev=307201&view=rev
Log:
Fix one more reference to lit.util.capture()
The capture method was removed in r306643.
Modified:
cfe/trunk/utils/perf-training/lit.cfg
cfe/trunk/utils/perf-training/order-files.lit.cfg
Modified: cfe/trunk/utils/perf-training/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/perf-training/lit.cfg?rev=307201&r1=307200&r2=307201&view=diff
==============================================================================
--- cfe/trunk/utils/perf-training/lit.cfg (original)
+++ cfe/trunk/utils/perf-training/lit.cfg Wed Jul 5 14:06:11 2017
@@ -3,13 +3,14 @@
from lit import Test
import lit.formats
import lit.util
+import subprocess
def getSysrootFlagsOnDarwin(config, lit_config):
# On Darwin, support relocatable SDKs by providing Clang with a
# default system root path.
if 'darwin' in config.target_triple:
try:
- out = lit.util.capture(['xcrun', '--show-sdk-path']).strip()
+ out = subprocess.check_output(['xcrun', '--show-sdk-path']).strip()
res = 0
except OSError:
res = -1
Modified: cfe/trunk/utils/perf-training/order-files.lit.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/perf-training/order-files.lit.cfg?rev=307201&r1=307200&r2=307201&view=diff
==============================================================================
--- cfe/trunk/utils/perf-training/order-files.lit.cfg (original)
+++ cfe/trunk/utils/perf-training/order-files.lit.cfg Wed Jul 5 14:06:11 2017
@@ -4,13 +4,14 @@ from lit import Test
import lit.formats
import lit.util
import os
+import subprocess
def getSysrootFlagsOnDarwin(config, lit_config):
# On Darwin, support relocatable SDKs by providing Clang with a
# default system root path.
if 'darwin' in config.target_triple:
try:
- out = lit.util.capture(['xcrun', '--show-sdk-path']).strip()
+ out = subprocess.check_output(['xcrun', '--show-sdk-path']).strip()
res = 0
except OSError:
res = -1
More information about the cfe-commits
mailing list