2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 00:52:16 +00:00

Fix CodeWarrior compatibility

[SVN r35064]
This commit is contained in:
Dave Abrahams
2006-09-10 23:45:20 +00:00
parent f6b0c0d111
commit a2b5a33a7c

View File

@@ -311,18 +311,7 @@ rule init-nt ( version : root ? : includes ? : libraries ? : cygwin-condition ?
# The name of Python library file does not have a dot between
# major and minor version.
local PYTHON_VERSION_NODOT = [ regex.match ([0-9]+)[.]([0-9]+).* : $(version) : 1 2 ] ;
if $(PYTHON_VERSION_NODOT)
{
PYTHON_VERSION_NODOT = $(PYTHON_VERSION_NODOT[1])$(PYTHON_VERSION_NODOT[2]) ;
}
else
{
# Try to link to 'python' lib, without version. Probably won't
# work, but better that not passing any library name at all.
PYTHON_VERSION_NODOT = "" ;
}
PYTHON_VERSION_NODOT = $(PYTHON_VERSION_NODOT:J="") ;
PYTHON_DLL ?= [ GLOB $(PATH) $(Path) : python$(PYTHON_VERSION_NODOT).dll ] ;
PYTHON_DEBUG_DLL ?= [ GLOB $(PATH) $(Path) : python$(PYTHON_VERSION_NODOT)_d.dll ] ;