Open
Description
It seems that gcc, unlike clang, does not export symbols from anonymous namespaces with -Wl,-export-dynamic, or does it in a way that jet-live does not recognize
namespace {
struct MyStruct {
int my_field = 0;
};
MyStruct global;
}
global.my_field = 123;
// hot-reload of this module happens
assert(global.my_field == 123); // fails (seems to be filled with zeroes/default initialized).
Would love to investigate what causes this, but there are no jet-live logs coming out related to this, so any pointers are appreciated!
Upd.: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31462 seems to be the old change in gcc that caused this
Metadata
Metadata
Assignees
Labels
No labels