Disabled libcp check for MSVC 2005. This lib is not used anymore.

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4797 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
joostverburg 2006-10-29 14:52:22 +00:00
parent 1247550061
commit 3c3e42020b

View file

@ -33,26 +33,28 @@ if defenv['DEBUG']:
### workarounds ### workarounds
# latest Platform SDK includes a bad version of libcp.lib. # Some Platform SDK version includes a bad version of libcp.lib.
# if stl usage causes link failure, copy the good libcp.lib # if stl usage causes link failure, copy the good libcp.lib
# from one of the other lib folders and use it instead. # from one of the other lib folders and use it instead.
confenv = defenv.Copy() if not defenv['TEMP_MSVC2005']:
conf = confenv.Configure()
libcptest = """ confenv = defenv.Copy()
#include <fstream> conf = confenv.Configure()
int main() {
libcptest = """
#include <fstream>
int main() {
// %s // %s
std::ofstream header("test", std::ofstream::out); std::ofstream header("test", std::ofstream::out);
return 0; return 0;
} }
""" """
conf.env.PrependENVPath('LIB', Dir('#/.sconf_temp').abspath) conf.env.PrependENVPath('LIB', Dir('#/.sconf_temp').abspath)
conf.env.Append(CCFLAGS = ['$EXCEPTION_FLAG']) conf.env.Append(CCFLAGS = ['$EXCEPTION_FLAG'])
if not conf.TryLink(libcptest % 'no change', '.cpp'): if not conf.TryLink(libcptest % 'no change', '.cpp'):
import os, shutil import os, shutil
libdirs = defenv['ENV']['LIB'].split(os.pathsep) libdirs = defenv['ENV']['LIB'].split(os.pathsep)
@ -70,7 +72,7 @@ if not conf.TryLink(libcptest % 'no change', '.cpp'):
print "*** Couldn't find a good version of libcp.lib" print "*** Couldn't find a good version of libcp.lib"
Exit(2) Exit(2)
conf.Finish() conf.Finish()
### stub environment ### stub environment