forked from OSchip/llvm-project
Fix one more reference to lit.util.capture()
The capture method was removed in r306643. llvm-svn: 307201
This commit is contained in:
parent
0d1990e2e7
commit
f70de9caa2
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue