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.
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 anopatbuild 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'satllbuildtool::module-mapswhich would be an array and just convert the paths in that array to-fmodule-map-file=<path>parameters for the compiler.