Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

symbols in build configurations

I am using NIOS SBT 9.1, and I want to set up separate debug and release build configurations and have different global symbol defines for each configuration. However, if I define symbols in the C/C++ General/Paths and Symbols settings of the project, they do not appear to work. I can set global symbols in the Nios II Application settings, but they then appear in all configurations. Is there any way to define symbols conditionally on the build configuration?

Thanks.

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I don't like the way of managing the build configurations as well. We use NIOS EDS 10.0 and it's the same problem as described above.

    We would like to have the same functionality as in the IDE.

    The only solution I know, is to use the command prompt instead of IDE/EDS and compiling with different makefiles.

    But that's not a solution to me. I prefer using an IDE.

    Any suggestions are welcome here as well!
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I just stumbled over exactly the same issue with Quartus/NIOS SBT 10.1. When searching the forum I found this post. Did anybody find a viable work-around?

    Thanks
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I have also tried to find solution to this problem. It seems that there is no 'easy way' solution to conditional Build in NIOS 10.1 SBT .

    See "Nios II Embedded Design Suite Release Notes and Errata" (These release notes cover versions 9.1 through 10.1 of the Altera® Nios® II Embedded Design Suite (EDS).)

    (page 34)

    unsupported cdt feature:

    paths and symbols

    alternative nios ii feature:

    use nios ii application properties and nios ii application

    paths

    Also I've defined my symbols there and live without conditional build.