From: stevenknight Date: Mon, 4 Feb 2002 04:25:26 +0000 (+0000) Subject: Set PROGSUFFIX to .exe under Cygwin. (Chad Austin) X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=09c0c67280016bc794089f803dde367016de801c;p=scons.git Set PROGSUFFIX to .exe under Cygwin. (Chad Austin) git-svn-id: http://scons.tigris.org/svn/scons/trunk@241 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- 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',