-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Map CMake compilers to cargo build environment variables #85
Comments
Was this in the context of a build script in Cargo? This is something I've wanted to fix at some point - basically, when invoking cargo, set |
The project I was trying to build is https://invent.kde.org/graphics/pikasso/ and I am afraid I am not a rust expert, but I enjoy experimenting with new things! I could not find a Cargo.toml but the CMakeLists.txt contains this:-
Edit: I did not look very hard. There is a Cargo.toml and it contains the following:-
|
Yeah, looks like the case then - this is a known issue. Thank you for filing this! As a work around, you should also be able to set |
Not sure what is going wrong here, but I packaged PIkasso without modiying anything, except I exported some rustc flags. |
This issue only comes up if you're trying to use a compiler that is not your "default" system compiler (i.e. mapped to |
I tried to compile a project that failed because it used
c++
instead of the compiler specified inCMAKE_CXX_COMPILER
(for example,clang++
). I temporarly fixed this by making a link toclang++
fromc++
in a location searched by $PATH before /usr/bin, but I think the better solution would be for corrosion to use the compiler specified by CMAKE_CXX_COMPILER.The text was updated successfully, but these errors were encountered: