-
-
Notifications
You must be signed in to change notification settings - Fork 816
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
Add flags for specific compilers and linkers #3022
Comments
I have supported both solutions. |
it doesn't work in Windows 10 MinGW GCC. Much more, flags can't cover the default value:
|
I'm having the same issue, and haven't found a resolution. I'm curious if it has anything to do with mingw being treated as cross compilation. |
tools = "gxx" |
tools = "gxx" |
Is your feature request related to a problem? Please describe.
Usually, we need to add specific flags in the script scope in order to determine the compiler name.
Describe the solution you'd like
Better solution1
For the same flags, we can also easily append them to different.
However, it can only be used for compilation tools and cannot be extended to other types.
and if there are a lot of flags, it will be
add_cxxflags("clang::-stdlib=libc++", "clang::xxx", "clang::yyy", "clang::zz")
Better solution2
it will override tools, always is gcc
Other solutions
...
It will override tools, it always is gcc.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: