Skip to content
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

[feat] Code change for compile on windows. Needs to modify php-src. #1286

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

TenHian
Copy link

@TenHian TenHian commented Dec 22, 2024

No description provided.

Copy link
Owner

@dunglas dunglas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for moving Windows support forward!

frankenphp.c Outdated
Comment on lines 31 to 33
#elif defined(__MINGW64__)
#include <pthread.h>
#endif
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#elif defined(__MINGW64__)
#include <pthread.h>
#endif

pthread.h is always included (line 20)

frankenphp.go Outdated
Comment on lines 18 to 21
// #cgo linux CFLAGS: -Wall -Werror
// #cgo darwin CFLAGS: -Wall -Werror
// #cgo openbsd CFLAGS: -Wall -Werror
// #cgo freebsd CFLAGS: -Wall -Werror
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// #cgo linux CFLAGS: -Wall -Werror
// #cgo darwin CFLAGS: -Wall -Werror
// #cgo openbsd CFLAGS: -Wall -Werror
// #cgo freebsd CFLAGS: -Wall -Werror
// #cgo unix CFLAGS: -Wall -Werror

Should work

@TenHian
Copy link
Author

TenHian commented Dec 24, 2024

Thanks for your comments. I've take them and added the compilation documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants