From 09c0c67280016bc794089f803dde367016de801c Mon Sep 17 00:00:00 2001 From: stevenknight Date: Mon, 4 Feb 2002 04:25:26 +0000 Subject: [PATCH] Set PROGSUFFIX to .exe under Cygwin. (Chad Austin) git-svn-id: http://scons.tigris.org/svn/scons/trunk@241 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- src/engine/SCons/Defaults.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/SCons/Defaults.py b/src/engine/SCons/Defaults.py index 8bf94d3d..9a510d68 100644 --- a/src/engine/SCons/Defaults.py +++ b/src/engine/SCons/Defaults.py @@ -37,11 +37,13 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" import os +import string +import sys + import SCons.Action import SCons.Builder import SCons.Scanner.C import SCons.Scanner.Prog -import string import SCons.Errors import SCons.Util @@ -244,7 +246,7 @@ if os.name == 'posix': 'OBJPREFIX' : '', 'OBJSUFFIX' : '.o', 'PROGPREFIX' : '', - 'PROGSUFFIX' : '', + 'PROGSUFFIX' : (sys.platform == 'cygwin') and '.exe' or '', 'LIBPREFIX' : 'lib', 'LIBSUFFIX' : '.a', 'LIBDIRPREFIX' : '-L', -- 2.26.2