blob: eb9c3c45fbdbce6062f4e03ef76133f601752c7a [file] [log] [blame]
Jack Jansen42218ce1997-01-31 16:15:11 +00001/***********************************************************
2Copyright 1991-1997 by Stichting Mathematisch Centrum, Amsterdam,
3The Netherlands.
4
5 All Rights Reserved
6
7Permission to use, copy, modify, and distribute this software and its
8documentation for any purpose and without fee is hereby granted,
9provided that the above copyright notice appear in all copies and that
10both that copyright notice and this permission notice appear in
11supporting documentation, and that the names of Stichting Mathematisch
12Centrum or CWI or Corporation for National Research Initiatives or
13CNRI not be used in advertising or publicity pertaining to
14distribution of the software without specific, written prior
15permission.
16
17While CWI is the initial source for this software, a modified version
18is made available by the Corporation for National Research Initiatives
19(CNRI) at the Internet address ftp://ftp.python.org.
20
21STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
22REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
23MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
24CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
25DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
26PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
27TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28PERFORMANCE OF THIS SOFTWARE.
29
30******************************************************************/
31
Guido van Rossum6e39e531995-08-08 14:11:07 +000032/* Return a string representing the compiler name */
33
Jack Jansenb4a7db72001-07-27 09:22:03 +000034#include "pyconfig.h"
Jack Jansen9ae898b2000-07-11 21:16:03 +000035#include "Python.h"
Jack Jansen007fa821996-08-19 11:36:59 +000036
Guido van Rossum6e39e531995-08-08 14:11:07 +000037#ifdef __MWERKS__
Jack Jansen2d1306b2000-04-07 09:10:49 +000038#ifdef USE_GUSI1
Jack Jansenfab74152001-02-17 22:00:43 +000039#define HASGUSI " GUSI1"
Jack Jansen2d1306b2000-04-07 09:10:49 +000040#else
41#ifdef USE_GUSI2
Jack Jansenfab74152001-02-17 22:00:43 +000042#define HASGUSI " GUSI2"
Jack Jansenc743c8d1996-02-14 16:02:30 +000043#else
44#define HASGUSI ""
45#endif
Jack Jansen2d1306b2000-04-07 09:10:49 +000046#endif
47
Jack Jansen2d1306b2000-04-07 09:10:49 +000048#ifdef WITH_THREAD
Jack Jansenfab74152001-02-17 22:00:43 +000049#define HASTHREAD " THREADS"
Jack Jansen2d1306b2000-04-07 09:10:49 +000050#else
51#define HASTHREAD ""
52#endif
53
Jack Jansen74a1e632000-07-14 22:37:27 +000054#if TARGET_API_MAC_CARBON
Jack Jansend9f6e922000-06-04 21:51:36 +000055#define TARGET_API " CARBON"
56#else
Jack Jansenfab74152001-02-17 22:00:43 +000057#define TARGET_API " PPC"
Jack Jansend9f6e922000-06-04 21:51:36 +000058#endif
59
Jack Jansen59c14e22001-08-07 12:33:32 +000060#ifdef WITH_CYCLE_GC
61#define HASGC " GC"
62#else
63#define HASGC ""
64#endif
65
66#define COMPILER " [CW" TARGET_API HASGUSI HASTHREAD HASGC"]"
Jack Jansenf717ac21995-08-14 12:30:15 +000067#endif
Guido van Rossum6e39e531995-08-08 14:11:07 +000068
69#ifdef MPW
Guido van Rossum6e39e531995-08-08 14:11:07 +000070#define COMPILER " [Apple MPW]"
71#endif
Guido van Rossum6e39e531995-08-08 14:11:07 +000072
Jack Jansen9ae898b2000-07-11 21:16:03 +000073const char *
74Py_GetCompiler(void)
Guido van Rossum6e39e531995-08-08 14:11:07 +000075{
76 return COMPILER;
77}