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

Better handling of pass_toolset

[SVN r17604]
This commit is contained in:
Dave Abrahams
2003-02-23 17:04:57 +00:00
parent cd9c137cba
commit d65774fd04
2 changed files with 24 additions and 14 deletions

View File

@@ -19,15 +19,18 @@ def get_toolset():
return toolset or 'gcc'
windows = 0
suffixes = {}
# Prepare the map of suffixes
suffixes = {'.exe': '', '.dll': '.so', '.lib': '.a', '.obj': '.o'}
if os.environ.get('OS','').lower().startswith('windows'):
windows = 1
suffixes = {}
if get_toolset() in ["gcc"]:
suffixes['.lib'] = '.a' # static libs have '.a' suffix with mingw...
suffixes['.obj'] = '.o'
def prepare_suffix_map(toolset):
suffixes = {'.exe': '', '.dll': '.so', '.lib': '.a', '.obj': '.o'}
if os.environ.get('OS','').lower().startswith('windows'):
global windows, suffixes
windows = 1
suffixes = {}
if toolset in ["gcc"]:
suffixes['.lib'] = '.a' # static libs have '.a' suffix with mingw...
suffixes['.obj'] = '.o'
@@ -74,6 +77,8 @@ class Tester(TestCmd.TestCmd):
if pass_toolset:
arguments = self.toolset + " " + arguments
prepare_suffix_map(pass_toolset and 'gcc' or self.toolset)
jam_build_dir = ""
if os.name == 'nt':
jam_build_dir = "bin.ntx86"

View File

@@ -19,15 +19,18 @@ def get_toolset():
return toolset or 'gcc'
windows = 0
suffixes = {}
# Prepare the map of suffixes
suffixes = {'.exe': '', '.dll': '.so', '.lib': '.a', '.obj': '.o'}
if os.environ.get('OS','').lower().startswith('windows'):
windows = 1
suffixes = {}
if get_toolset() in ["gcc"]:
suffixes['.lib'] = '.a' # static libs have '.a' suffix with mingw...
suffixes['.obj'] = '.o'
def prepare_suffix_map(toolset):
suffixes = {'.exe': '', '.dll': '.so', '.lib': '.a', '.obj': '.o'}
if os.environ.get('OS','').lower().startswith('windows'):
global windows, suffixes
windows = 1
suffixes = {}
if toolset in ["gcc"]:
suffixes['.lib'] = '.a' # static libs have '.a' suffix with mingw...
suffixes['.obj'] = '.o'
@@ -74,6 +77,8 @@ class Tester(TestCmd.TestCmd):
if pass_toolset:
arguments = self.toolset + " " + arguments
prepare_suffix_map(pass_toolset and 'gcc' or self.toolset)
jam_build_dir = ""
if os.name == 'nt':
jam_build_dir = "bin.ntx86"