Skip to content

Custom Compiler profile Import #2

Open

Description

@sgolubev33

Hello,

If I've defined custom compiler profile in the Code::Clocks the cbp2make does not importing this custom profile in to cbp2make.cfg

Activity

  1. mirai-computing commented on Dec 15, 2022

    @mirai-computing
    Owner

    Hi! Sorry for late reply. Unfortunately, cbp2make doesn't know how to import Code::Blocks config (yet), so the fastest way to introduce a custom compiler to cbp2make is to configure it manually either through command line or by direct editing of cbp2make XML config. You can first run cbp2make dry with --local and --config options and then edit the template. I know it's inconvenient, but I'm having just the same problem with it.

    The problem with importing Code::Blocks config is that Code::Blocks stores almost everything in CDATA sections and not in regular XML tags and parameters and then since 1) TinyXml cannot provide an API for parsing and r/w contents of CDATA sections because it can't possibly know its format and 2) correct me if I'm wrong, but internal Code::Blocks config doesn't seem to be well documented; reverse engineering of that format including studying Code::Blocks sources has been postponed during active development. Maybe we should give it another try, it's a nice feature afterall, I'd like it being implemented.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions