https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110710

--- Comment #16 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:a704554d2e798e2e1b74b9fea4baf3477180bd9d

commit r15-108-ga704554d2e798e2e1b74b9fea4baf3477180bd9d
Author: Peter Damianov <peter0...@disroot.org>
Date:   Sun Apr 28 16:16:12 2024 -0700

    lto-wrapper: Truncate files using -truncate driver option [PR110710]

    This commit changes the Makefiles generated by lto-wrapper to no longer use
    the "mv" and "touch" shell commands. These don't exist on Windows, so when
the
    Makefile attempts to call them, it results in errors like:
    The system cannot find the file specified.

    This problem only manifested when calling gcc from cmd.exe, and having no
    sh.exe present on the PATH. The Windows port of GNU Make searches the PATH
for
    an sh.exe, and uses it if present.

    I have tested this in environments with and without sh.exe on the PATH and
    confirmed it works as expected.

    Signed-off-by: Peter Damianov <peter0...@disroot.org>

            PR lto/110710
            * lto-wrapper.cc (run_gcc): Instead of truncating a processed
            ltrans input from the Makefile use the new -truncate option
            to accomplish the same.

Reply via email to