Visible to Intel only — GUID: GUID-89BDC7B8-B4B4-4BDF-A28F-57111ED8A516
Visible to Intel only — GUID: GUID-89BDC7B8-B4B4-4BDF-A28F-57111ED8A516
save-temps, Qsave-temps
Tells the compiler to save intermediate files created during compilation.
Syntax
Linux: |
-save-temps -no-save-temps |
Windows: |
/Qsave-temps (C++ only) /Qsave-temps- (C++ only) |
Windows: |
None (SYCL only) |
Arguments
None
Default
SYCL: Linux systems: -no-save-temps |
On Linux systems, the compiler deletes intermediate files after compilation is completed. |
C++: Linux systems: -no-save-temps |
On Linux systems, the compiler deletes intermediate files after compilation is completed. On Windows systems, the compiler saves only intermediate object files after compilation is completed. |
Description
This option tells the compiler to save intermediate files created during compilation. The names of the files saved are based on the name of the source file; the files are saved in the current working directory.
If option [Q]save-temps (C++) or save-temps (SYCL) is specified, the following occurs:
The object .o file (Linux) is saved.
C++: The .obj file (Windows) object .o file is saved.
If -no-save-temps is specified on Linux systems, the following occurs:
The .o file is put into /tmp and deleted after calling ld.
The preprocessed file is not saved after it has been used by the compiler.
If /Qsave-temps- is specified on C++ Windows systems, the following occurs:
The .obj file is not saved after the linker step.
The preprocessed file is not saved after it has been used by the compiler.
This option only saves intermediate files that are normally created during compilation.
IDE Equivalent
Alternate Options
None