-
Notifications
You must be signed in to change notification settings - Fork 125
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
Cross-compile improvements break the x86_64-fortanix-unknown-sgx
target
#170
Comments
I have just realised that the main reason for this failure is that this particular CMake project uses As such it seems I can also fix the error by explicitly setting the |
I don't see an obvious way of having this "just work" with FWIW, I don't have access to the target so I won't fix it myself, but I'm certainly willing to take changes to avoid issues that we hit on more obscure targets (so long as they're reasonable and not extremely complicated for the sake of a single target). So I think it would be reasonable to tweak that logic for SGX's case. This seems like it might be more to do with the specific CMake script you're using, though (although I'm not certain about this). |
Yeah, certainly there's no way of automatically setting I guess the only question is whether just unilaterally disabling cross-compiling and setting |
I am using this crate to compile CMake projects using the
x86_64-fortanix-unknown-sgx
target to run under Intel SGX, and the latest update to this crate (v0.1.49
) is causing the following errors that weren't present in the previous version:I believe this is likely due to the changes made in #158. These result in
-DCMAKE_SYSTEM_NAME=unknown
being passed to CMake, which it does not understand.In my own crates I am able to fix this by overriding the variables manually as follows:
But I might not always have the option of making this modification for any third-party crates.
I'm not sure what the correct fix for this would be, possibly just disabling the setting of the cross-compile variables when the
x86_64-fortanix-unknown-sgx
target is being used?The text was updated successfully, but these errors were encountered: