Visible to Intel only — GUID: GUID-9E1C426C-3725-4527-8BDC-0E5EC791A525
Visible to Intel only — GUID: GUID-9E1C426C-3725-4527-8BDC-0E5EC791A525
pch-dir
Tells the compiler the location for precompiled header files.
Linux and macOS: |
-pch-dir dir |
Windows: |
None |
dir |
Is the path for precompiled header files. The path must exist. |
OFF |
The compiler does not create or use precompiled headers unless you tell it to do so. |
This option tells the compiler the location for precompiled header files. It denotes where to find precompiled header files, and where new PCH files should be placed.
This option can be used with the -pch, -pch-create, and -pch-use options.
Visual Studio: None
Eclipse: Precompiled Headers > Precompiled Headers' File Directory
Xcode: Precompiled Headers > Prefix Header
None
Example
Consider the following command line:
icpc -pch -pch-dir /pch source32.cpp
It produces the following output:
"source32.cpp": creating precompiled header file /pch/source32.pchi