-
Notifications
You must be signed in to change notification settings - Fork 7
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
Make repo a flake and make ld-linux be dynamically located #152
Conversation
… it doesn't exist
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.
Thanks you so much! Really nice work. Some small changes though
mkdir -p bin/Release | ||
|
||
#HACK: uses RelWithDebInfo since normal realease causes a segfault | ||
cmake \ |
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.
Shound't we cann the release script here?
fs::path ld_linux_path; | ||
|
||
void* handle = dlopen("ld-linux-x86-64.so.2", RTLD_LAZY); | ||
if (!handle) { DEBUG_CODEGEN("Error getting library path: %s", dlerror()); } |
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.
Nice! This is really cool! Instead of DEBUG_CODEGEN we should raise an error instead, I can do that once I arrive at home since DEBUG_CODEGEN does not exist in release builds
sorry, there are bugs, if you want, you can open a new PR with the same commits.
I pinged u on discord to discuss about this problem |
note that the executable is built with
RelWithDebInfo
instead ofRelease
. That's becauseRelease
seems to cause a segfault. I haven't found out why it occurs, I but I've found it happens inTransformer::visitGlobal