Quantcast
Channel: Intel® C++-Compiler
Viewing all articles
Browse latest Browse all 1665

-P doesn't produce .i files in ICC

$
0
0

hi, i can't produce the preprocessed files with -P on my project compiling with ICC: https://github.com/riclas/rstm

in order to compile it with -P just change the line:
set(rstm_init_cxx_flags -Wall)
to: set(rstm_init_cxx_flags -Wall -P)
in file: cmake/UserOverrides.cmake
then follow the readme instructions, but with CC=icc and CXX=icpc

I've tried with a simple "hello world" and the .i file is produced, so this must be something related to the other compiler options of my project... ?

with GCC and -P -save-temps it creates the appropriate .ii files.


Viewing all articles
Browse latest Browse all 1665

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>