You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@hlaaftana, look in the corresponding thread: https://forum.nim-lang.org/t/7763 let does not guarantee that the initializing value will be evaluated at compile time and can be successfully placed in the`rodata ' section.
Adding on, if exportc should work on consts, then should we also be able to take the addr of a const, or at least an exported const? If so this is related to this RFC: nim-lang/RFCs#257
The compiler must never optimize out constants marked with the
expotrc
pragma.For example:
Expected C output:
Current output:
Nothing (optimized out)
The text was updated successfully, but these errors were encountered: