Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-362

No general way to get multiple compiler flags through sconsUtils

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: sconsUtils
    • Labels:
      None
    • Templates:
    • Team:
      Architecture

      Description

      Setting CCFLAGS in the environment does nothing. Setting CCFLAGS on the scons command line and including --setenv works, but can't easily be applied to all executions of scons. Setting CCFLAGS in an SCONSFLAGS environment variable works for a single flag but not for more than one. (Luckily we've only needed a single value for LINKFLAGS in the past.) Setting ARCHFLAGS, which get added to both CCFLAGS and LINKFLAGS, also works for a single flag but not more than one.

      The problem with the last option above appears to be that ARCHFLAGS is appended as a single-element list. It's probably best to split() it before conversion to a list.

        Attachments

          Container Issues

            Activity

              People

              • Assignee:
                ktl Kian-Tat Lim
                Reporter:
                ktl Kian-Tat Lim
                Reviewers:
                Jim Bosch
                Watchers:
                Jim Bosch, Kian-Tat Lim, Robert Lupton
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel