visual c++ - How does this snippet of Makefile code work? (For using more than 1 compiler) -


so i've got piece of code:

sourcefile.$(obj_suffix): sourcefile.cpp $(global_deps)   $(report_build)   @$(make_deps_auto_cxx) $(elog) $(ccc:icl=cl) $(outoption)$@ -c $(compile_cxxflags:o3=o2) $(compile_cxxflags:arch:sse3=arch:sse2) $(_vpath_srcs) 

so see compiles specific file vc opposed icl, , changes of flags vc compatible. thing can't find makefile documentation how switch compilers mid-compile. i'm not sure searching let lone being able find documentation it.

also, used header files? @ moment i'm encountering error icl won't compile header file, vc will.

thanks!

this using string substitution hack in 'cl' in place of intel compiler ('icl').

actions in makefile typically defined based on extension of file process; example, how resource compiler gets involved .rc files. in case looks singling out specific file, , modifying variables.

since .h file isn't 'compiled' separate entity, won't able use different compiler processing specific header (compiler 1 have no way of passing data compiler 2). best option either contact compiler manufacturer see if have compatible version of header or hand modify file builds toolset using.


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -