Question on adding .C suffix to CXXSuffixes

Don Baldwin <donb-Rm6X0d1/[email protected]> Wed, 17 Jun 2020 22:03:55 +0000
Newsgroups gmane.comp.programming.tools.scons.devel
Message-ID <BY5PR02MB61317101F2F709ABB37D6763F59A0@BY5PR02MB6131.namprd02.prod.outlook.com>
--===============5187510245413033329==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_BY5PR02MB61317101F2F709ABB37D6763F59A0BY5PR02MB6131namp_"

--_000_BY5PR02MB61317101F2F709ABB37D6763F59A0BY5PR02MB6131namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,

I noticed the following code in .../scons/SCons/Tool/cxx.py

CXXSuffixes =3D ['.cpp', '.cc', '.cxx', '.c++', '.C++', '.mm']
if SCons.Util.case_sensitive_suffixes('.c', '.C'):
    CXXSuffixes.append('.C')

Is this a bug?  Why are we adding '.C' to CXXSuffixes when we haven't added=
 '.c'?

-Don
(new to this group, but been using an older version of SCons for a few year=
s now)

--_000_BY5PR02MB61317101F2F709ABB37D6763F59A0BY5PR02MB6131namp_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:dt=3D"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m=3D"http://sc=
hemas.microsoft.com/office/2004/12/omml" xmlns=3D"http://www.w3.org/TR/REC-=
html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Hi,<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">I noticed the following code in &#8230;/scons/SCons/=
Tool/cxx.py<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal" style=3D"margin-left:.5in"><span style=3D"font-famil=
y:&quot;Courier New&quot;">CXXSuffixes =3D ['.cpp', '.cc', '.cxx', '.c&#43;=
&#43;', '.C&#43;&#43;', '.mm']<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"margin-left:.5in"><span style=3D"font-famil=
y:&quot;Courier New&quot;">if SCons.Util.case_sensitive_suffixes('.c', '.C'=
):<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"margin-left:.5in"><span style=3D"font-famil=
y:&quot;Courier New&quot;">&nbsp;&nbsp;&nbsp;
<span style=3D"background:yellow;mso-highlight:yellow">CXXSuffixes.append('=
.C')</span></span><o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Is this a bug?&nbsp; Why are we adding &#8216;.C&#82=
17; to CXXSuffixes when we haven&#8217;t added &#8216;.c&#8217;?<o:p></o:p>=
</p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">-Don<o:p></o:p></p>
<p class=3D"MsoNormal">(new to this group, but been using an older version =
of SCons for a few years now)<o:p></o:p></p>
</div>
</body>
</html>

--_000_BY5PR02MB61317101F2F709ABB37D6763F59A0BY5PR02MB6131namp_--

--===============5187510245413033329==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Scons-dev mailing list
[email protected]
https://pairlist2.pair.net/mailman/listinfo/scons-dev

--===============5187510245413033329==--