Skip to content

CPPScanner doesnt take into account precompiled headers in cpp files #2292

@bdbaddog

Description

@bdbaddog

This issue was originally created at: 2009-01-14 07:57:41.
This issue was reported by: csiki.

csiki said at 2009-01-14 07:57:41

The scanner try to find an stdafx.h in the include paths even though it is considered to be a precompiled header. This makes wrong dependencies.

Example: I setup the PCHSTOP to stdafx.h, and the needed file innerdir/stdafx.cpp (so not in the include paths, but the correct stdafx.h file is there also). If there is a stdafx.h somewhere in the include path, the scons will consider it as dependency (too, the pch dependency also alive).

Full example:

env.Append(CPPPATH = ['FCollada\\FCollada'])
env['PCH']=env.PCH('innerdir\\stdafx.cpp')[0]
env['PCHSTOP']='stdafx.h'
env.StaticObject('otherdir/test.cpp')

Files:

FCollada/FCollada/stdafx.h
innerdir/stdafx.cpp
innerdir/stdafx.h
otherdir/test.cpp

otherdir/test.cpp will be dependent to FCollada/FCollada/stdafx.h, if it is precompiled (begins with #include "stdafx.h")

gregnoel said at 2009-01-23 01:53:34

Bug party triage. Brandon to link up with Steven and document how to do this.

gregnoel said this issue depends on #2286 at 2009-01-23 01:53:34.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions