forked from OSchip/llvm-project
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:
parent
535a69112b
commit
fb69dd8b64
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue