Skip to content

Doesn't use specified C compiler #2016

@bdbaddog

Description

@bdbaddog

This issue was originally created at: 2008-04-19 03:47:02.
This issue was reported by: broonie.
broonie said at 2008-04-19 03:47:03

Jussi Judin jjudin+debian@iki.fi reported the following bug in SCons. I've
tested it against 0.98.1:

Scons doesn't check the specified CC environment variable to get CCVERSION
from. Example Scons script that demonstrates the problem:

env = Environment(CC='gcc-4.1')
print env.Dictionary('CC')
print env.Dictionary('CCVERSION')

Results in:

jussi@jussiblet:/tmp$ scons
scons: Reading SConscript files ...
gcc-4.1
4.2.3
scons: done reading SConscript files.
scons: Building targets ...
scons: `.' is up to date.
scons: done building targets.

gregnoel said at 2008-04-19 11:07:32

Unfortunately true, and has always been the case. Until there is actual support
for Tool configuration, it will continue to be the case.

I don't know what to suggest for this issue. On the one hand, it's how it's
supposed to work currently, but on the other hand, it's something that will be
fixed eventually. The first hand implies that it should be closed as INVALID
while the second hand implies that it should be collected with the configuration
issues (or possibly closed as a dup of one of them).

broonie said at 2008-04-19 11:11:39

I'd go with the second option - even considering that this is how it's currently
expected to work it's fairly obviously undesirable behaviour and rather
unintuitive to anyone used to standard auto* and Makefile stuff.

gregnoel said at 2008-04-19 11:37:33

As the one who's been arguing to replace Configure contexts with a unified
scheme that integrates Option objects (now Variable objects) as well as other
forms of direct and indirect specification of the environment, I'm not going to
disagree, but that also makes me not the right one to rule on it. It'll have to
wait for a bug party to look at it.

stevenknight said at 2008-05-22 09:46:13

Target milestone per bug party triage.

gregnoel said at 2008-12-26 13:20:18

Adjust triage of issues.

stevenknight said at 2009-11-10 18:00:19

stevenknight => issues@scons

dirkbaechle said at 2014-05-18 10:37:49

marking as duplicate

*** This issue has been marked as a duplicate of 1723 ***

More information about this issue is at http://bugs.debian.org/476407.

dirkbaechle said this issue is a duplicate of #1723 at 2014-05-18 10:37:49.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions