Files
jq/.github/workflows
VoidsipandBaalEvan 22c22bcc30 Enable long file paths in Windows builds (#3711)
On Windows, jq could not open files whose paths exceed MAX_PATH (260
characters), even with LongPathsEnabled set, because the executable did
not declare longPathAware in its application manifest.

Embed an application manifest in jq.exe through a resource compiled
with windres, detected by configure for native Windows hosts. The
manifest keeps the asInvoker and supportedOS entries of the MinGW
default manifest it replaces and adds longPathAware. It uses a non-zero
resource language so that the linker drops the default manifest. Add a
PowerShell test that reads a file through a path longer than MAX_PATH
in the Windows CI jobs.

Co-authored-by: BaalEvan <baalevan@outlook.com>
2026-12-06 09:48:56 +09:00
..