Avoid a clash when scons is run in parallel operation (#3295528)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6151 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
1730185509
commit
b39f193c31
1 changed files with 8 additions and 5 deletions
|
@ -28,12 +28,15 @@ def AddZLib(env, platform, alias='install-utils'):
|
|||
print 'Please specify folder of zlib for Win32 via ZLIB_W32'
|
||||
Exit(1)
|
||||
|
||||
conf = env.Configure()
|
||||
if not conf.CheckLibWithHeader(zlib, 'zlib.h', 'c'):
|
||||
print 'zlib (%s) is missing!' % (platform)
|
||||
Exit(1)
|
||||
# Avoid unnecessary configuring when cleaning targets
|
||||
# and a clash when scons is run in parallel operation.
|
||||
if not env.GetOption('clean'):
|
||||
conf = env.Configure()
|
||||
if not conf.CheckLibWithHeader(zlib, 'zlib.h', 'c'):
|
||||
print 'zlib (%s) is missing!' % (platform)
|
||||
Exit(1)
|
||||
|
||||
env = conf.Finish()
|
||||
env = conf.Finish()
|
||||
|
||||
|
||||
def GetAvailableLibs(env, libs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue