diff options
author | Peter Damianov <peter0x44@disroot.org> | 2024-04-28 16:16:12 -0700 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2024-05-02 12:42:33 +0200 |
commit | a704554d2e798e2e1b74b9fea4baf3477180bd9d (patch) | |
tree | 3c159af7ffe10cc62aefe3c668ec8c9c17342e82 /gcc/tree-inline.cc | |
parent | 985b5a90f70c7376c771317c6c8c3bc5ef05e227 (diff) | |
download | gcc-a704554d2e798e2e1b74b9fea4baf3477180bd9d.zip gcc-a704554d2e798e2e1b74b9fea4baf3477180bd9d.tar.gz gcc-a704554d2e798e2e1b74b9fea4baf3477180bd9d.tar.bz2 |
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 <peter0x44@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.
Diffstat (limited to 'gcc/tree-inline.cc')
0 files changed, 0 insertions, 0 deletions