diff options
author | Steven Knight <knight@baldmt.com> | 2003-04-24 03:45:32 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-04-24 03:45:32 (GMT) |
commit | db7e2b9bef087394fd3ce603e75231dec7f2eca4 (patch) | |
tree | 59fe8e23d14566ca5776d7ad108e95208ed17344 /src/engine/SCons/Tool/gcc.py | |
parent | 9587e1d2dad1c532d86f664f5cbd6266ebd77808 (diff) | |
download | SCons-db7e2b9bef087394fd3ce603e75231dec7f2eca4.zip SCons-db7e2b9bef087394fd3ce603e75231dec7f2eca4.tar.gz SCons-db7e2b9bef087394fd3ce603e75231dec7f2eca4.tar.bz2 |
Implement tool chains for AIX, SunOS, and HP-UX. (Steve Leblanc)
Diffstat (limited to 'src/engine/SCons/Tool/gcc.py')
-rw-r--r-- | src/engine/SCons/Tool/gcc.py | 28 |
1 files changed, 3 insertions, 25 deletions
diff --git a/src/engine/SCons/Tool/gcc.py b/src/engine/SCons/Tool/gcc.py index 5caf1fb..bf81ba8 100644 --- a/src/engine/SCons/Tool/gcc.py +++ b/src/engine/SCons/Tool/gcc.py @@ -33,41 +33,19 @@ selection method. __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" -import os.path - -import SCons.Tool -import SCons.Defaults -import SCons.Util +import cc compilers = ['cc', 'gcc'] -CSuffixes = ['.c'] -if os.path.normcase('.c') == os.path.normcase('.C'): - CSuffixes.append('.C') - def generate(env): """Add Builders and construction variables for gcc to an Environment.""" - static_obj, shared_obj = SCons.Tool.createObjBuilders(env) + cc.generate(env) - for suffix in CSuffixes: - static_obj.add_action(suffix, SCons.Defaults.CAction) - shared_obj.add_action(suffix, SCons.Defaults.ShCAction) - - env['CC'] = env.Detect(compilers) or 'cc' - env['CCFLAGS'] = '' - env['CCCOM'] = '$CC $CCFLAGS $CPPFLAGS $_CPPINCFLAGS -c -o $TARGET $SOURCES' - env['SHCC'] = '$CC' + env['CC'] = env.Detect(compilers) or 'cc' if env['PLATFORM'] == 'cygwin': env['SHCCFLAGS'] = '$CCFLAGS' else: env['SHCCFLAGS'] = '$CCFLAGS -fPIC' - env['SHCCCOM'] = '$SHCC $SHCCFLAGS $CPPFLAGS $_CPPINCFLAGS -c -o $TARGET $SOURCES' - env['SHOBJSUFFIX'] = '.os' - env['INCPREFIX'] = '-I' - env['INCSUFFIX'] = '' - env['STATIC_AND_SHARED_OBJECTS_ARE_THE_SAME'] = 0 - - env['CFILESUFFIX'] = '.c' def exists(env): return env.Detect(compilers) |