cw.c (9a70fc3be3b1e966bf78825cdb8d509963a6f0a1) | cw.c (0bb073995ac5a95bd35f2dd790df1ea3d8c2d507) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 19 unchanged lines hidden (view full) --- 28 * Wrapper for the GNU C compiler to make it accept the Sun C compiler 29 * arguments where possible. 30 * 31 * Since the translation is inexact, this is something of a work-in-progress. 32 * 33 */ 34 35/* If you modify this file, you must increment CW_VERSION */ | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 19 unchanged lines hidden (view full) --- 28 * Wrapper for the GNU C compiler to make it accept the Sun C compiler 29 * arguments where possible. 30 * 31 * Since the translation is inexact, this is something of a work-in-progress. 32 * 33 */ 34 35/* If you modify this file, you must increment CW_VERSION */ |
36#define CW_VERSION "1.25" | 36#define CW_VERSION "1.26" |
37 38/* 39 * -# Verbose mode 40 * -### Show compiler commands built by driver, no compilation 41 * -A<name[(tokens)]> Preprocessor predicate assertion 42 * -B<[static|dynamic]> Specify dynamic or static binding 43 * -C Prevent preprocessor from removing comments 44 * -c Compile only - produce .o files, suppress linking --- 1745 unchanged lines hidden (view full) --- 1790 1791 /* 1792 * Figure out where to get our tools from. This depends on 1793 * the environment variables set at run time. 1794 */ 1795 if ((dir = getenv("SPRO_VROOT")) != NULL) { 1796 (void) snprintf(cc_buf, MAXPATHLEN, "%s/bin", dir); 1797 } else if ((dir = getenv("SPRO_ROOT")) != NULL) { | 37 38/* 39 * -# Verbose mode 40 * -### Show compiler commands built by driver, no compilation 41 * -A<name[(tokens)]> Preprocessor predicate assertion 42 * -B<[static|dynamic]> Specify dynamic or static binding 43 * -C Prevent preprocessor from removing comments 44 * -c Compile only - produce .o files, suppress linking --- 1745 unchanged lines hidden (view full) --- 1790 1791 /* 1792 * Figure out where to get our tools from. This depends on 1793 * the environment variables set at run time. 1794 */ 1795 if ((dir = getenv("SPRO_VROOT")) != NULL) { 1796 (void) snprintf(cc_buf, MAXPATHLEN, "%s/bin", dir); 1797 } else if ((dir = getenv("SPRO_ROOT")) != NULL) { |
1798 (void) snprintf(cc_buf, MAXPATHLEN, "%s/SS11/bin", dir); | 1798 (void) snprintf(cc_buf, MAXPATHLEN, "%s/SS12/bin", dir); |
1799 } else if ((dir = getenv("BUILD_TOOLS")) != NULL) { 1800 (void) snprintf(cc_buf, MAXPATHLEN, | 1799 } else if ((dir = getenv("BUILD_TOOLS")) != NULL) { 1800 (void) snprintf(cc_buf, MAXPATHLEN, |
1801 "%s/SUNWspro/SS11/bin", dir); | 1801 "%s/SUNWspro/SS12/bin", dir); |
1802 } 1803 if (dir != NULL) { 1804 dirs[CIDX(CW_C_CC, 0)] = (const char *)cc_buf; 1805 dirs[CIDX(CW_C_CC, CW_F_CXX)] = (const char *)cc_buf; 1806 } 1807 1808 if ((dir = getenv("GNU_ROOT")) != NULL) { 1809 (void) snprintf(gcc_buf, MAXPATHLEN, "%s/bin", dir); --- 86 unchanged lines hidden --- | 1802 } 1803 if (dir != NULL) { 1804 dirs[CIDX(CW_C_CC, 0)] = (const char *)cc_buf; 1805 dirs[CIDX(CW_C_CC, CW_F_CXX)] = (const char *)cc_buf; 1806 } 1807 1808 if ((dir = getenv("GNU_ROOT")) != NULL) { 1809 (void) snprintf(gcc_buf, MAXPATHLEN, "%s/bin", dir); --- 86 unchanged lines hidden --- |