-
Notifications
You must be signed in to change notification settings - Fork 194
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
Dependency on dead code elimination #515
Comments
libtommath/s_mp_rand_platform.c Lines 136 to 137 in 8355b88
|
Are there places where libtommath silently depends on dead code elimination? Or why do you need a single point of failure? |
|
Guarding invalid code (for the current target platform) behind an if-condition, feels not correct. Seems like the |
I'm trying to compile libtommath (v1.2.0) on MacOS with my own CMake configuration.
However, when linking the test application, if received the following linker error
While looking for a cause in the source code, I found the following comment
libtommath/s_mp_rand_platform.c
Line 121 in 8355b88
which makes it sound like this is intended behaviour???
I need to compile libtommath for a bunch of platforms and I really don't want to patch this file for each one of them.
I'm wondering why the code doesn't simply use the preprocessor defines, which are defined in the code above.
Wouldn't this achieve the same effect without having to rely on dead code elimination?
The text was updated successfully, but these errors were encountered: