Don't import lock on Windows.

lock imports fcntl, which doesn't exist on Windows.  If we need
to use this class on Windows, we will need to implement something
based on the CreateMutex API.

llvm-svn: 237292
This commit is contained in:
Zachary Turner 2015-05-13 20:21:33 +00:00
parent 535a69112b
commit fb69dd8b64
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,6 @@ for available options.
import commands
import os
import errno
import lock
import platform
import progress
import signal
@ -439,6 +438,7 @@ def setupCrashInfoHook():
global setCrashInfoHook
setCrashInfoHook = setCrashInfoHook_NonMac # safe default
if platform.system() == "Darwin":
import lock
test_dir = os.environ['LLDB_TEST']
if not test_dir or not os.path.exists(test_dir):
return