Skip to content

#include macro ignored as a dependency #3038

Open

Description

@bdbaddog

This issue was originally created at: 2017-03-06 00:28:29.
This issue was reported by: stephendhill.

stephendhill said at 2017-03-06 00:28:29

#include macro, appears to be ignored as a dependency. E.g.

#define TESTPOINT_STEERING_FILE "sys_testpoint_all_sets.h"
#include TESTPOINT_STEERING_FILE

if sys_testpoint_all_sets.h is modified and we perform a build, nothing is rebuilt.

bdbaddog said at 2017-03-06 15:21:11

This is a known issue.

Please bring your issues to the users mailing list prior to filing a bug per the bug policy.

https://scons.org/bugs.html

There is a new scanner for c/C++ files in the work which may work for this use case.

You might try using the code in this pull request and see if it resolves your
issue. Please bring discussion of this to the users mailing list.

Activity

  1. mwichmann commented on Mar 26, 2021

    @mwichmann
    Collaborator

    See also #344 - these look like dupes.

  2. mwichmann commented on Jul 19, 2022

    @mwichmann
    Collaborator

    The CConditionalScanner does work for this case. It does not, at the moment at least, work for the case where the macro is defined on the command line (that is, comes from CPPDEFINES) - that case is also mentioned in the related issue #344. In order to close this issue out, do we need to document how to select the conditional scanner?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions