Visible to Intel only — GUID: GUID-13254925-2A24-42A5-88E1-443CEC4C2D31
Visible to Intel only — GUID: GUID-13254925-2A24-42A5-88E1-443CEC4C2D31
Qoption
Passes options to a specified tool.
Linux: |
-Qoption,string,options |
macOS: |
-Qoption,string,options |
Windows: |
/Qoption,string,options |
string |
Is the name of the tool. |
options |
Are one or more comma-separated, valid options for the designated tool. Note that certain tools may require that options appear within quotation marks (" "). |
OFF |
No options are passed to tools. |
This option passes options to a specified tool.
If an argument contains a space or tab character, you must enclose the entire argument in quotation marks (" "). You must separate multiple arguments with commas.
string can be any of the following:
fpp (or cpp) - Indicates the Intel® Fortran preprocessor or a user-specified (alternate) Fortran preprocessor.
asm - Indicates the assembler.
link - Indicates the linker.
prof - Indicates the profiler.
On Windows* systems, the following is also available:
masm - Indicates the Microsoft assembler.
On Linux* and macOS systems, the following are also available:
as - Indicates the assembler.
gas - Indicates the GNU assembler.
ld - Indicates the loader.
gld - Indicates the GNU loader.
lib - Indicates an additional library.
crt - Indicates the crt%.o files linked into executables to contain the place to start execution.
This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation. Offloading can only be enabled when using ifx.
None
Examples for Linux* or macOS systems
The following example directs the linker to link with an alternative library:
ifort -Qoption,link,-L.,-Lmylib prog1.f
The following example passes a compiler option to the assembler to generate a listing file:
ifort -Qoption,as,"-as=myprogram.lst" -use-asm myprogram.f90
The following option passes an fpp option to the Fortran preprocessor:
ifort -Qoption,fpp,"-fpp=macro=no
Examples for Windows* systems
The following example directs the linker to create a memory map when the compiler produces the executable file from the source being compiled:
ifort /Qoption,link,/map:prog1.map prog1.f
The following example passes a compiler option to the assembler:
ifort /Quse-asm /Qoption,masm,"/WX" myprogram.f90
The following option passes an fpp option to the Fortran preprocessor:
ifort /Qoption,fpp,"/fpp:macro=no"