mirror of https://github.com/microsoft/clang.git
Fix one more reference to lit.util.capture()
The capture method was removed in r306643. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307201 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6907b9898e
commit
a1cfa91c1c
|
@ -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