-
-
Notifications
You must be signed in to change notification settings - Fork 671
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
[hlc] disable dump_types by default #11673
[hlc] disable dump_types by default #11673
Conversation
Isn't it a bit strange to have this as a runtime-error? If the function isn't defined then I'd expect a C-level compiler error instead. |
The goal is to be able to compile without the content of this function - clang++ on this console target takes additional 10 mins when building the file ( However if we don't define |
Looking at if( gc_types_dump ) gc_types_dump(fdump_d); I still find it strange to define it and register it via If discoverability is a concern then you could just make that function print a note about defining |
So if we really need discoverability, you would suggest let |
Both sound good to me.
Well, if the define doesn't exist then there's no problem because the function is currently always registered. The only potentially confusing situation is when the HL runtime is used without Haxe, but that's an entirely different conversation. |
I think I prefer print in Haxe so the define and info print are at the same place. And print is probably more gentle compared to error in a gc locked context. |
IMO this shouldn't be phrased like an error in the first place, but I don't really mind. |
Thank you for your patience! |
We found that the function
dump_types
introduced in 9dcb694 makes the compilation very long on clang++ for a console target.This PR disable
dump_types
by default by a#ifdef
and show a runtime error if the dump function is called.