-
Notifications
You must be signed in to change notification settings - Fork 67
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
Windows - add a DEBUG build with debugging symbols #350
Windows - add a DEBUG build with debugging symbols #350
Conversation
Thanks for the contribution and sorry for the delay in getting back to you. Regarding the documentation it would probably be best to add a separate "Windows" section here as I could not find a good place to put it. Seems like the pipeline builds are now unable to find the proper php lib. Can you have a look at that? EDIT: Regarding docu: Adding this to https://github.com/davidcole1340/ext-php-rs?tab=readme-ov-file#windows-requirements would probably be fine too. |
@Xenira Thank you for the suggestions. I fixed the library search function to ensure it works in all cases or returns an error. |
@Xenira Thanks! |
@EdmondDantes could you run |
@Xenira Done |
01896e9
to
e221600
Compare
Updated the branch with clippy fixes from master #352 |
This change enables the extension to be compiled correctly in debug mode.
The issue was that, in the default case, the builder attempted to use files from the PHP DEV PACK, which lacks debug symbols. This resulted in a linker error, as it couldn't find the emalloc functions (these have different signatures in DEBUG builds).
Solution:
PHP_LIB
.PHP_LIB
must point to a builtPHP
instance. The library name is chosen asphp8ts_debug.lib
.P.S. I tried to find a place in the documentation to add this, but I can't figure out where it should go. If you can provide details, I would certainly include it.