You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: While we appreciate all feature requests, please understand that not all requests can be accepted. Providing detailed information will help us better evaluate your suggestion.
Summary
Support usage of environment variables in "cc-flags" & "cc-link-flags" field.
Motivation
For native backend programs, I want my problem to be able to compile on linux & macOS, which sometimes may link to different system libraries, or the same library but located at different place.
However, a proper multi-platform support is somewhat complex and relies on us to maintain a list of supported platform. By using environment variables, we can let users to handle the complexity of the platforms they will be using.
Feature Request
Note: While we appreciate all feature requests, please understand that not all requests can be accepted. Providing detailed information will help us better evaluate your suggestion.
Summary
Support usage of environment variables in "cc-flags" & "cc-link-flags" field.
Motivation
For native backend programs, I want my problem to be able to compile on linux & macOS, which sometimes may link to different system libraries, or the same library but located at different place.
However, a proper multi-platform support is somewhat complex and relies on us to maintain a list of supported platform. By using environment variables, we can let users to handle the complexity of the platforms they will be using.
Detailed Description
I would be able to write:
And moon will read the two environment variables from its environment, and interpolate them into the flags string before calling
moonc
.Related Issues
Checklist
The text was updated successfully, but these errors were encountered: