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

Fix some conditional logic.

[SVN r17640]
This commit is contained in:
Vladimir Prus
2003-02-25 14:09:45 +00:00
parent e7257dfcd3
commit 447bfc4c1e
2 changed files with 4 additions and 4 deletions

View File

@@ -23,9 +23,9 @@ suffixes = {}
# Prepare the map of suffixes
def prepare_suffix_map(toolset):
global windows, suffixes
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"]:
@@ -77,7 +77,7 @@ class Tester(TestCmd.TestCmd):
if pass_toolset:
arguments = self.toolset + " " + arguments
prepare_suffix_map(pass_toolset and 'gcc' or self.toolset)
prepare_suffix_map(pass_toolset and self.toolset or 'gcc')
jam_build_dir = ""
if os.name == 'nt':

View File

@@ -23,9 +23,9 @@ suffixes = {}
# Prepare the map of suffixes
def prepare_suffix_map(toolset):
global windows, suffixes
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"]:
@@ -77,7 +77,7 @@ class Tester(TestCmd.TestCmd):
if pass_toolset:
arguments = self.toolset + " " + arguments
prepare_suffix_map(pass_toolset and 'gcc' or self.toolset)
prepare_suffix_map(pass_toolset and self.toolset or 'gcc')
jam_build_dir = ""
if os.name == 'nt':