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

Disabling debugging symbols #587

Open
LuisAlejandro opened this issue Jan 22, 2025 · 2 comments
Open

Disabling debugging symbols #587

LuisAlejandro opened this issue Jan 22, 2025 · 2 comments
Labels
os/windows Things only for Windows question Further information is requested

Comments

@LuisAlejandro
Copy link

Is there a way to avoid the creation of debugging symbols in spc build?

I'm encountering the following bug in spc: php/php-src#17547

And I want to try disabling debugging symbols, but don't know how to set PHP_DEBUG=no within spc.

Thanks in advance.

@LuisAlejandro
Copy link
Author

I was looking at the source code and perhaps I could add it here:

FileSystem::writeFile(SOURCE_PATH . '\php-src\nmake_cli_wrapper.bat', "nmake /nologo LIBS_CLI=\"{$this->getOption('extra-libs')} ws2_32.lib shell32.lib\" EXTRA_LD_FLAGS_PROGRAM= %*");

But perhaps there's an easier way? I wouldn't like to fork the tool just for that

@crazywhalecc crazywhalecc added question Further information is requested os/windows Things only for Windows labels Jan 25, 2025
@crazywhalecc
Copy link
Owner

I'm glad you reported this issue. Currently the project lacks many customization options for Windows builds. If you think this is necessary, I will add custom options or environment variables.

In addition, the default binary built by static-php in Wiindows is in Release mode. There is no direct switch to build Debug mode for the time being, because some libraries and PHP itself require additional patches when purely statically built, and there are currently no patches for all modes.

Regarding the issue you submitted in the php-src repository, if the problem occurs when using static-php directly to select the extension combination build, it is recommended to create an additional issue for this bug, and I will track this issue later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os/windows Things only for Windows question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants