Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple compiles per configuration file #131

Open
TheRustifyer opened this issue Aug 24, 2024 · 0 comments
Open

Multiple compiles per configuration file #131

TheRustifyer opened this issue Aug 24, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request feature Something new in the application or library

Comments

@TheRustifyer
Copy link
Member

Feature Request

Is your feature request related to a problem? Please describe.

Currently, a single configuration file allows the user to declare only one compiler configuration. It would be beneficial to enable users to configure multiple compilers within a single configuration file, eliminating the need for separate configuration files for each compiler.

Furthermore, it would be advantageous to allow users to specify an array of available operating systems for these configurations. This would enable users to conditionally configure compilers based on the underlying operating system.
Describe the solution you'd like

Describe the solution you'd like

One straightforward solution could be to introduce named entries, similar to the targets feature, where users can configure all the compilers and variations they need. Later, we could simply iterate through each entry in the map. However, this approach would require matching the model.compiler.cpp_compiler throughout the codebase or retrieving it from the hashmap, which could introduce code that is prone to errors.

A better alternative, using a similar approach, would be to introduce a new entity within the configuration file using the [compiler] attribute as [compiler.<compiler_identifier>]. We could then create an adapter that generates a linear collection of standard configuration files. This way, the codebase wouldn’t need extensive modifications wherever the compiler configuration is referenced (which is practically everywhere). Once the adapter generates the linear collection, we can iterate over them with minimal code changes, extending functionality without requiring internal API modifications all over the codebase.

@TheRustifyer TheRustifyer added enhancement New feature or request feature Something new in the application or library labels Aug 24, 2024
@TheRustifyer TheRustifyer self-assigned this Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature Something new in the application or library
Projects
Status: No status
Development

No branches or pull requests

1 participant