-
Notifications
You must be signed in to change notification settings - Fork 0
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
Migrate pt-run to a complete Lua frontend #21
Conversation
Since renaming pt-run is an API change that will break Pallene builds, can we implement pallene-tracer version numbers before we merge this? |
Let's do it after we are done stabilizing it? We are almost done tbh |
I think we better merge this after Lua internals and Pallene is bumped up to Lua 5.4.7. |
Agreed on merging this after 5.4.7 As for the version numbers, I suppose we might as well do it now? We already had unrelated Pallene PRs breaking because of ptracer API changes. |
Yes, let's do version tagging after this merge. I will come up with commits fixing the nits tomorrow. We won't be releasing on this tag though. Also it would be wise to mark the tag as alpha if possible. |
The problem is that since we switched Pallene to use the separate pallene tracer repo, any changes we make here break the CI on all the Pallene PRs, including that one that Gabriel is working on. Can we please do the version numbers first? |
Fine by me. But it would have been great if we had atleast pt-lua. If version numbers can wait one more day, I can complete this PR and then can do version numbering. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still not convinced about the -isystem. I have never seen that in a makefile. The -I ought to have been sufficient? What do you mean by headers are not properly resolved? Have you tested using LUA_PREFIX=/usr/local?
Have I tested with It does not work, simple as that. There is nothing to be convinced about. the |
In the verbose logging, you use |
@hugomg Again, that's not the point. I used it because in my case if I wanted to compile pt-lua against my system Lua. It was still grabbing Lua internal headers from /usr/local/include, the -I was not working. So, I had to switch to -isystem for that. Now, the situation can be very well vice versa, say you have a backdated Lua in your system that you want to compile against and a newer version of Lua is installed in /usr/local. By the way, using /usr/local was still giving me errors, because as usual with -isystem the /usr/local was getting resolved first. |
I highly suggest that you try the -isystem flag yourself. Also try having Lua internals 5.4.6 with you, that would make my point aloud. |
That is not a configuration that we have to support. The C header file include system is not designed to handle using ptracer from usr/local but then not using the Lua from /usr/local. If the user really wants to do that, they should install lua-internals and ptracer to different prefixes. |
I am not convinced. The As for prefixes. I am pretty much sure users won't like to make their life a hassle by installing to a different prefix and adding it to their path just for a single goddang flag, which is not total taboo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding version numbers before merging this.
Should we create version tag after merging this? Because regardless, we have to make changes to Pallene with another PR. |
We're overdue for a version tag Em 14 de ago. de 2024 9:24 AM, SD Asif Hossein ***@***.***> escreveu:
Should we create version tag after merging this? Because regardless, we have to make changes to Pallene with another PR.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Changelog:
pt-run
topt-lua
, which acts like a complete Lua frontend with our custom traceback function being the default one.-isystem
flag inCPPFLAGS
of Makefile, because if Lua and Lua internals are installed in the same machine, sometimes compiler finds it troublesome regarding which Include directory to use, /usr for Lua or /usr/local for Lua internals. Maybe don't need this if Lua internals always copes up with the upstream Lua version, but I would like to keep it just incase. Noteworthy to mention, using-I
won't do.Resolves #13