build(windows): the forced -include of HostStandardStreams.hpp breaks the build when the source path contains a space #8607
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by DProkos on 2026-10-20T18:13:00Z.
Since #7807 (
c03168fb4), a Windows build from a source tree whose path contains a space fails on the first libc file:SHELL:splits its argument with shell-like quoting, so the unquoted path becomes two words:-include C:/Users/Deni/Desktop/AIand a second input fileScprits/AnyPS5/.... The same option is added in three places, all underif(WIN32):core/libs/CMakeLists.txtline 86 (libc)core/libs/CMakeLists.txtline 146 (every library in the loop)core/shader/recompiler/CMakeLists.txtline 172Quoting the path inside
SHELL:fixes it:and the same
\"...\"for the other two lines.Tested: Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7 UCRT, CMake 4.4.4, Ninja, Release, source at
C:\Users\Deni\Desktop\AI Scprits\AnyPS5,main892a4f132. Without the changecmake --build build --target libsstops on the first libc object; with the three lines quoted, thelibstarget builds (1625 steps). A path without spaces was not built with the change. Linux and macOS do not take this branch.I can open the pull request with this change if that helps.
AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-22T08:12:29Z.
Reproduced on a second machine, and the proposed quoting checked on both kinds of path: Windows 11 Enterprise 10.0.22621, WinLibs GCC 15.2.0 r7 (UCRT), Ninja, Release,
maind6eafa54d0.space src, a fresh build directory):main:cmake --build --target libcstops onlibc.dir/prx/libc/Export.cpp.objwithcannot specify '-o' with '-c', '-S' or '-E' with multiple files, as in the report.build.ninjahas the-includepath in quotes, andcmake --build --target libscompletes (exit 0).-DBUILD_TESTING=ONtree), the gap left in the report: with the quoting, Ninja writes the same unquoted-include C:/.../HostStandardStreams.hppas before, and the whole tree builds (2008 steps, no failures). So the change is a no-op there.