Nvidia compiler support
What does this PR do?
Add a new toolset module for Nvidia HPC C/C++ compiler (Closes #1874).
How does this PR change Premake's behavior?
No breaking change.
Anything else we should know?
I only tested that the new toolset can compile premake on my linux machine using gmake2 exporter.
Did you check all the boxes?
- [x] Focus on a single fix or feature; remove any unrelated formatting or code changes
- [ ] Add unit tests showing fix or feature works; all tests pass
- [x] Mention any related issues (put
closes #XXXXin comment to auto-close issue when PR is merged) - [x] Follow our coding conventions
- [x] Minimize the number of commits
- [ ] Align documentation to your changes
You can now support Premake on our OpenCollective. Your contributions help us spend more time responding to requests like these!
Closes #1874
I'll review this when I have time to sit down and read through the entire toolset. It's a wall of code, so it'll take me a while to get comfortable with it.
For information, a large part of the code is copied from the gcc toolset. I tried to find an equivalent in the Nvidia compiler for each flag but it's not always possible.
Sure, I don't expect equivalents to be there for everything. Do you mind posting a link to where you were referencing for the compiler flags just so I'm looking at the same sources as you when I review?
Here is the latest available documentation for nvidia compiler : NVIDIA HPC Compilers Reference Manual
Should it be an external modules instead?
Just poking the discussion on whether this should be an external module or a core module.