Uploaded image for project: 'Mynewt'
  1. Mynewt
  2. MYNEWT-323

Newt - Build options precedence hierarchy

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • v1_0_0_beta1
    • Newt
    • Security Level: Public (Viewable by anyone)
    • None

    Description

      When two packages specify conflicting build options, it is undefined which one takes effect. Worse, if two packages specify conflicting cflags (e.g., "-DLOG_LEVEL=0" and "-DLOG_LEVEL=1"), gcc reports an error and aborts the build.

      We should enforce a well-defined precedence hierarchy. I'm thinking something like this (lowest priority first):

      • Library
      • BSP
      • App
      • Target

      In the case of conflicting options, newt should discard all but the highest priority. Newt would need to do some simple parsing of cflags to identity conflicts.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ccollins476 Christopher Collins
            ccollins476 Christopher Collins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment