-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Custom target support #423
Comments
This part of the warning is actually outdated and should/will be removed. Corrosion does still attempt to parse the target triple and sets the following variables for users convenience:
I guess we don't need a warning message here anymore, the variables could just remain unset. |
Not strictly related, but i'm also getting this error with |
I see I already added
In some places we need to check the ABI, and CMake seems to treat that as an implementation detail / internal variable. This mostly affects the |
Update from my side:
I retract this statement. I want to keep the warning, since corrosion still does some target specific things based on the result of the parsed target triple, mainly determining file extensions or prefixes (e.g. .exe / .dll on windows OS, CMake also (at least partially) provides such information for the target OS, but we also support the
It ends up working out despite the warning because you are targetting linux which falls into I wonder if in the future we may be able to query file extensions for a given target triple directly from cargo / rustc. |
I tried setting a custom target while also using build-std:
The build seems to have succeeded, but this warning appeared:
Removing the "custom-" also removes the warning, but I feel a custom target should have a slightly different name than the original, so it's clear what you're compiling to when you're checking the logs.
Is setting
CORROSION_NO_WARN_PARSE_TARGET_TRIPLE_FAILED
the official™ solution here? At the very least, I feel the documentation should mention this, or maybe I just missed it.The text was updated successfully, but these errors were encountered: