diff options
author | David Rothenberger <daveroth@acm.org> | 2013-08-17 19:12:56 (GMT) |
---|---|---|
committer | David Rothenberger <daveroth@acm.org> | 2013-08-17 19:12:56 (GMT) |
commit | f837e2e6511cc8049e5a765c9af25afc9fd730fe (patch) | |
tree | 1e31f698424a467ed6ac3d722037912c0224f194 /src/engine/SCons/Tool/__init__.py | |
parent | a0ca59da5a6b076f34c1fb5ebe713a1d1ce7d085 (diff) | |
download | SCons-f837e2e6511cc8049e5a765c9af25afc9fd730fe.zip SCons-f837e2e6511cc8049e5a765c9af25afc9fd730fe.tar.gz SCons-f837e2e6511cc8049e5a765c9af25afc9fd730fe.tar.bz2 |
Add a cyglink tool
Add cyglink, a specialization of gnulink with the following
properties:
1. Set SHLIBPREFIX to "cyg" and SHLIBSUFFIX = ".dll".
2. Remove any "lib" after "cyg", to accommodate build scripts that
name libraries "libFoo".
3. Create DLL import libraries.
Diffstat (limited to 'src/engine/SCons/Tool/__init__.py')
-rw-r--r-- | src/engine/SCons/Tool/__init__.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/engine/SCons/Tool/__init__.py b/src/engine/SCons/Tool/__init__.py index 89aabb5..af1282c 100644 --- a/src/engine/SCons/Tool/__init__.py +++ b/src/engine/SCons/Tool/__init__.py @@ -733,6 +733,14 @@ def tool_list(platform, env): assemblers = ['as'] fortran_compilers = ['gfortran', 'f95', 'f90', 'g77'] ars = ['ar'] + elif str(platform) == 'cygwin': + "prefer GNU tools on Cygwin, except for a platform-specific linker" + linkers = ['cyglink', 'mslink', 'ilink'] + c_compilers = ['gcc', 'msvc', 'intelc', 'icc', 'cc'] + cxx_compilers = ['g++', 'msvc', 'intelc', 'icc', 'c++'] + assemblers = ['gas', 'nasm', 'masm'] + fortran_compilers = ['gfortran', 'g77', 'ifort', 'ifl', 'f95', 'f90', 'f77'] + ars = ['ar', 'mslib'] else: "prefer GNU tools on all other platforms" linkers = ['gnulink', 'mslink', 'ilink'] |