Skip to content

Add :module-maps to link against c libs without compiler knowledge #105

@dunkelstern

Description

@dunkelstern

To link against a c Library currently you'll have to add a compiler flag (-fmodule-map-file=) to the list.

This way a User is expected to know how the compiler works under the covers, I think this is a bad thing. You should be able to configure what you want if you are knowing what you're doing, but it should be as easy as possible to do the basic things.

The argument that you'll need to know how a module map works could be mitigiated by providing a repository of common module maps to be added as a dependency with atpm. The repo would contain a nop atbuild file and just a lot of module maps that could be used in your atbuild file then.

I will start such a repository if everyone will confirm that this is a good idea.

I propose a new key in atbuild's atllbuild tool: :module-maps which would be an array and just convert the paths in that array to -fmodule-map-file=<path> parameters for the compiler.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions