compilerSettings.pp 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417
  1. #print Generating for $[USE_COMPILER]
  2. //////////////////////////////
  3. // MICROSOFT VISUAL C++ 6.0 //
  4. //////////////////////////////
  5. #if $[eq $[USE_COMPILER], MSVC]
  6. #define COMPILER cl
  7. #define LINKER link
  8. #define LIBBER lib
  9. #define COMMONFLAGS /Gi-
  10. // use "unsafe" QIfist flt->int rounding only if FAST_FLT_TO_INT is defined
  11. #define OPTFLAGS /O2 /Ob1 /G7 $[if $[ne $[FAST_FLT_TO_INT],], /QIfist,]
  12. #define OPT1FLAGS /GZ
  13. // Note: Zi cannot be used on multiproc builds with precomp hdrs, Z7 must be used instead
  14. #defer DEBUGPDBFLAGS /Zi /Fd"$[osfilename $[patsubst %.obj,%.pdb,$[target]]]"
  15. #defer DEBUGFLAGS /MDd $[BROWSEINFO_FLAG] $[DEBUGINFOFLAGS] $[DEBUGPDBFLAGS]
  16. #defer RELEASEFLAGS $[if $[ne $[LINK_FORCE_STATIC_RELEASE_C_RUNTIME],],/MT, /MD]
  17. #define WARNING_LEVEL_FLAG /Wall
  18. // NODEFAULTLIB ensures static libs linked in will connect to the correct msvcrt, so no debug/release mixing occurs
  19. #define LDFLAGS_OPT1 /NODEFAULTLIB:MSVCRT.LIB
  20. #define LDFLAGS_OPT2 /NODEFAULTLIB:MSVCRT.LIB
  21. #define LDFLAGS_OPT3 /NODEFAULTLIB:MSVCRTD.LIB /OPT:REF
  22. #define LDFLAGS_OPT4 /NODEFAULTLIB:MSVCRTD.LIB /OPT:REF $[LDFLAGS_OPT4]
  23. #define MAPINFOFLAGS /MAPINFO:EXPORTS /MAPINFO:FIXUPS /MAPINFO:LINES
  24. #if $[ENABLE_PROFILING]
  25. // note according to docs, this should force /PDB:none /DEBUGTYPE:cv, so no pdb file is generated for debug?? (doesnt seem to be true)
  26. #define PROFILE_FLAG /PROFILE
  27. #else
  28. #define PROFILE_FLAG
  29. #endif
  30. // Note: all Opts will link w/debug info now
  31. #define LINKER_FLAGS /DEBUG /DEBUGTYPE:CV $[PROFILE_FLAG] /MAP $[MAPINFOFLAGS] /fixed:no /incremental:no /stack:4194304 /WARN:3
  32. // Added to avoid old iostream reference problems
  33. #define LINKER_FLAGS $[LINKER_FLAGS] /NODEFAULTLIB:LIBCI.LIB
  34. // for mixed intel/msvc build, add these
  35. // #define EXTRA_LIBPATH /ia32/lib
  36. // #define EXTRA_INCPATH /ia32/include
  37. #if $[or $[ne $[FORCE_INLINING],],$[>= $[OPTIMIZE],2]]
  38. #define EXTRA_CDEFS FORCE_INLINING $[EXTRA_CDEFS]
  39. #endif
  40. // ensure pdbs are copied to install dir
  41. #define build_pdbs yes
  42. ////////////////////////////////////////////////////////////////////
  43. // MICROSOFT VISUAL C++ 7.0, 7.1, & 8.0 (.NET, .NET 2003, & 2005) //
  44. ////////////////////////////////////////////////////////////////////
  45. #elif $[or $[or $[eq $[USE_COMPILER], MSVC7], $[eq $[USE_COMPILER], MSVC7_1]], $[eq $[USE_COMPILER],MSVC8]]
  46. #define COMPILER cl
  47. #define LINKER link
  48. #define LIBBER lib
  49. #if $[eq $[NO_CROSSOBJ_OPT],]
  50. #define DO_CROSSOBJ_OPT 1
  51. #endif
  52. #if $[DO_CROSSOBJ_OPT]
  53. #define OPT4FLAGS /GL
  54. #define LDFLAGS_OPT4 /LTCG
  55. #if $[>= $[OPTIMIZE],4]
  56. #define LIBBER $[LIBBER] /LTCG
  57. #endif
  58. #endif
  59. #define CDEFINES_OPT1
  60. #define CDEFINES_OPT2
  61. #define CDEFINES_OPT3
  62. #define CDEFINES_OPT4
  63. // NODEFAULTLIB ensures static libs linked in will connect to the correct msvcrt, so no debug/release mixing occurs
  64. #define LDFLAGS_OPT1 /NODEFAULTLIB:MSVCRT.LIB
  65. #define LDFLAGS_OPT2 /NODEFAULTLIB:MSVCRT.LIB
  66. #define LDFLAGS_OPT3 /NODEFAULTLIB:MSVCRTD.LIB /OPT:REF
  67. #define LDFLAGS_OPT4 /NODEFAULTLIB:MSVCRTD.LIB /OPT:REF $[LDFLAGS_OPT4]
  68. #define COMMONFLAGS /DHAVE_DINKUM /Zc:forScope
  69. // use "unsafe" QIfist flt->int rounding only if FAST_FLT_TO_INT is defined
  70. #if $[or $[eq $[USE_COMPILER], MSVC7], $[eq $[USE_COMPILER], MSVC7_1]]
  71. #define REGULAR_OPTFLAGS /O2 /Ob2 /G7 $[if $[ne $[FAST_FLT_TO_INT],], /QIfist,]
  72. #defer OPTFLAGS $[if $[OPT_MINSIZE],/Ox /Og /Ob1 /Oi /Os /Oy /GL /G7,$[REGULAR_OPTFLAGS]]
  73. #else
  74. #define REGULAR_OPTFLAGS /O2 /Ob2 $[if $[ne $[FAST_FLT_TO_INT],], /QIfist,]
  75. #defer OPTFLAGS $[if $[OPT_MINSIZE],/Ox /Og /Ob1 /Oi /Os /Oy /GL,$[REGULAR_OPTFLAGS]]
  76. #endif
  77. // #define OPT1FLAGS /RTCsu /GS removing /RTCu because it crashes in dxgsg with internal compiler bug
  78. #define OPT1FLAGS /RTCs /GS
  79. #define WARNING_LEVEL_FLAG /W3 // WL
  80. //#define WARNING_LEVEL_FLAG /Wall
  81. //#define WARNING_LEVEL_FLAG /W4 /WX
  82. // Note: Zi cannot be used on multiproc builds with precomp hdrs, Z7 must be used instead
  83. #defer DEBUGPDBFLAGS /Zi /Fd"$[osfilename $[patsubst %.obj,%.pdb, $[target]]]"
  84. // if LINK_FORCE_STATIC_C_RUNTIME is defined, it always links with static c runtime (release version
  85. // for both Opt1 and Opt4!) instead of the msvcrt dlls
  86. #defer DEBUGFLAGS $[if $[ne $[LINK_FORCE_STATIC_RELEASE_C_RUNTIME],],/MTd, /MDd] $[BROWSEINFO_FLAG] $[DEBUGINFOFLAGS] $[DEBUGPDBFLAGS]
  87. #defer RELEASEFLAGS $[if $[ne $[LINK_FORCE_STATIC_RELEASE_C_RUNTIME],],/MT, /MD]
  88. #if $[or $[eq $[USE_COMPILER], MSVC7], $[eq $[USE_COMPILER], MSVC7_1]]
  89. #define MAPINFOFLAGS /MAPINFO:EXPORTS /MAPINFO:LINES
  90. #else
  91. #define MAPINFOFLAGS /MAPINFO:EXPORTS
  92. #endif
  93. #if $[ENABLE_PROFILING]
  94. #define PROFILE_FLAG /FIXED:NO
  95. #else
  96. #define PROFILE_FLAG
  97. #endif
  98. #if $[or $[ne $[FORCE_INLINING],],$[>= $[OPTIMIZE],2]]
  99. #defer EXTRA_CDEFS $[EXTRA_CDEFS] $[if $[OPT_MINSIZE],,FORCE_INLINING]
  100. #endif
  101. // Note: all Opts will link w/debug info now
  102. #define LINKER_FLAGS /DEBUG $[PROFILE_FLAG] /MAP $[MAPINFOFLAGS] /fixed:no /incremental:no /stack:4194304
  103. // Added to avoid old iostream reference problems
  104. #define LINKER_FLAGS $[LINKER_FLAGS] /NODEFAULTLIB:LIBCI.LIB
  105. #if $[eq $[USE_COMPILER],MSVC8]
  106. #define LINKER_FLAGS $[LINKER_FLAGS] /NOD:MFC80.LIB /NOD:libcmtd /NOD:libc
  107. #endif
  108. // #define LINKER_FLAGS $[LINKER_FLAGS] /NODEFAULTLIB:LIBCI.LIB /NODEFAULTLIB:msvcrt.lib /NODEFAULTLIB:msvcprt.lib
  109. // in case we have mixed intel/msvc build
  110. // #define EXTRA_LIBPATH /ia32/lib
  111. // #define EXTRA_INCPATH /ia32/include
  112. // ensure pdbs are copied to install dir
  113. #define build_pdbs yes
  114. /////////////////////////////////////
  115. // MICROSOFT VISUAL C++ 9.0 (2008) //
  116. /////////////////////////////////////
  117. #elif $[eq $[USE_COMPILER], MSVC9]
  118. #define COMPILER cl
  119. #define LINKER link
  120. #define LIBBER lib
  121. #define MT_BIN mt
  122. #if $[eq $[NO_CROSSOBJ_OPT],]
  123. #define DO_CROSSOBJ_OPT 1
  124. #endif
  125. #if $[DO_CROSSOBJ_OPT]
  126. #define OPT4FLAGS /GL
  127. #define LDFLAGS_OPT4 /LTCG
  128. #if $[>= $[OPTIMIZE],4]
  129. #define LIBBER $[LIBBER] /LTCG
  130. #endif
  131. #endif
  132. #define CDEFINES_OPT1
  133. #define CDEFINES_OPT2
  134. #define CDEFINES_OPT3
  135. #define CDEFINES_OPT4
  136. // NODEFAULTLIB ensures static libs linked in will connect to the correct msvcrt, so no debug/release mixing occurs
  137. #define LDFLAGS_OPT1 /NODEFAULTLIB:MSVCRT.LIB
  138. #define LDFLAGS_OPT2 /NODEFAULTLIB:MSVCRT.LIB
  139. #define LDFLAGS_OPT3 /NODEFAULTLIB:MSVCRTD.LIB /OPT:REF
  140. #define LDFLAGS_OPT4 /NODEFAULTLIB:MSVCRTD.LIB /OPT:REF $[LDFLAGS_OPT4]
  141. #define COMMONFLAGS /DHAVE_DINKUM /Zc:forScope
  142. // use "unsafe" QIfist flt->int rounding only if FAST_FLT_TO_INT is defined
  143. #define REGULAR_OPTFLAGS /O2 /Ob2 $[if $[ne $[FAST_FLT_TO_INT],], /QIfist,]
  144. #defer OPTFLAGS $[if $[OPT_MINSIZE],/Ox /Og /Ob1 /Oi /Os /Oy /GL,$[REGULAR_OPTFLAGS]]
  145. // #define OPT1FLAGS /RTCsu /GS removing /RTCu because it crashes in dxgsg with internal compiler bug
  146. #define OPT1FLAGS /RTCs /GS
  147. #define WARNING_LEVEL_FLAG /W3 // WL
  148. // Note: Zi cannot be used on multiproc builds with precomp hdrs, Z7 must be used instead
  149. #defer DEBUGPDBFLAGS /Zi /Fd"$[osfilename $[patsubst %.obj,%.pdb, $[target]]]"
  150. // if LINK_FORCE_STATIC_C_RUNTIME is defined, it always links with static c runtime (release version
  151. // for both Opt1 and Opt4!) instead of the msvcrt dlls
  152. #defer DEBUGFLAGS $[if $[ne $[LINK_FORCE_STATIC_RELEASE_C_RUNTIME],],/MTd, /MDd] $[BROWSEINFO_FLAG] $[DEBUGINFOFLAGS] $[DEBUGPDBFLAGS]
  153. #defer RELEASEFLAGS $[if $[ne $[LINK_FORCE_STATIC_RELEASE_C_RUNTIME],],/MT, /MD]
  154. #define MAPINFOFLAGS /MAPINFO:EXPORTS
  155. #if $[ENABLE_PROFILING]
  156. #define PROFILE_FLAG /FIXED:NO
  157. #else
  158. #define PROFILE_FLAG
  159. #endif
  160. #if $[or $[ne $[FORCE_INLINING],],$[>= $[OPTIMIZE],2]]
  161. #defer EXTRA_CDEFS $[EXTRA_CDEFS] $[if $[OPT_MINSIZE],,FORCE_INLINING]
  162. #endif
  163. // Note: all Opts will link w/debug info now
  164. #define LINKER_FLAGS /DEBUG $[PROFILE_FLAG] /MAP $[MAPINFOFLAGS] /fixed:no /incremental:no /stack:4194304
  165. // Added to avoid old iostream reference problems
  166. #define LINKER_FLAGS $[LINKER_FLAGS] /NODEFAULTLIB:LIBCI.LIB
  167. // Added to make pandatool function in VS 9
  168. #define LINKER_FLAGS $[LINKER_FLAGS] /NOD:MFC80.LIB /NOD:libcmtd /NOD:libc
  169. // Added to generate manifest files even when no dependencies exist
  170. #define LINKER_FLAGS $[LINKER_FLAGS] /MANIFEST
  171. // ensure pdbs are copied to install dir
  172. #define build_pdbs yes
  173. ///////////////////////////////////////////////////
  174. // MICROSOFT VISUAL C++ 9.0 (2008) 64-bit output //
  175. ///////////////////////////////////////////////////
  176. #elif $[eq $[USE_COMPILER], MSVC9x64]
  177. #define COMPILER cl
  178. #define LINKER link
  179. #define LIBBER lib
  180. #define MT_BIN mt
  181. #if $[eq $[NO_CROSSOBJ_OPT],]
  182. #define DO_CROSSOBJ_OPT 1
  183. #endif
  184. #if $[DO_CROSSOBJ_OPT]
  185. #define OPT4FLAGS /GL
  186. #define LDFLAGS_OPT4 /LTCG
  187. #if $[>= $[OPTIMIZE],4]
  188. #define LIBBER $[LIBBER] /LTCG
  189. #endif
  190. #endif
  191. #define CDEFINES_OPT1
  192. #define CDEFINES_OPT2
  193. #define CDEFINES_OPT3
  194. #define CDEFINES_OPT4
  195. // NODEFAULTLIB ensures static libs linked in will connect to the correct msvcrt, so no debug/release mixing occurs
  196. #define LDFLAGS_OPT1 /NODEFAULTLIB:MSVCRT.LIB
  197. #define LDFLAGS_OPT2 /NODEFAULTLIB:MSVCRT.LIB
  198. #define LDFLAGS_OPT3 /NODEFAULTLIB:MSVCRTD.LIB /OPT:REF
  199. #define LDFLAGS_OPT4 /NODEFAULTLIB:MSVCRTD.LIB /OPT:REF $[LDFLAGS_OPT4]
  200. #define COMMONFLAGS /DHAVE_DINKUM /Zc:forScope
  201. // use "unsafe" QIfist flt->int rounding only if FAST_FLT_TO_INT is defined
  202. // use /bigobj in 64-bit environment
  203. #define REGULAR_OPTFLAGS $[if $[eq $[USE_COMPILER],MSVC9x64], /bigobj,] /O2 /Ob2 $[if $[ne $[FAST_FLT_TO_INT],], /QIfist,]
  204. #defer OPTFLAGS $[if $[OPT_MINSIZE],/Ox /Og /Ob1 /Oi /Os /Oy /GL,$[REGULAR_OPTFLAGS]]
  205. // #define OPT1FLAGS /RTCsu /GS removing /RTCu because it crashes in dxgsg with internal compiler bug
  206. #define OPT1FLAGS /RTCs /GS
  207. #define WARNING_LEVEL_FLAG /W3 // WL
  208. // Note: Zi cannot be used on multiproc builds with precomp hdrs, Z7 must be used instead
  209. #defer DEBUGPDBFLAGS /Zi /Fd"$[osfilename $[patsubst %.obj,%.pdb, $[target]]]"
  210. // if LINK_FORCE_STATIC_C_RUNTIME is defined, it always links with static c runtime (release version
  211. // for both Opt1 and Opt4!) instead of the msvcrt dlls
  212. #defer DEBUGFLAGS $[if $[ne $[LINK_FORCE_STATIC_RELEASE_C_RUNTIME],],/MTd, /MDd] $[BROWSEINFO_FLAG] $[DEBUGINFOFLAGS] $[DEBUGPDBFLAGS]
  213. #defer RELEASEFLAGS $[if $[ne $[LINK_FORCE_STATIC_RELEASE_C_RUNTIME],],/MT, /MD]
  214. #define MAPINFOFLAGS /MAPINFO:EXPORTS
  215. #if $[ENABLE_PROFILING]
  216. #define PROFILE_FLAG /FIXED:NO
  217. #else
  218. #define PROFILE_FLAG
  219. #endif
  220. #if $[or $[ne $[FORCE_INLINING],],$[>= $[OPTIMIZE],2]]
  221. #defer EXTRA_CDEFS $[EXTRA_CDEFS] $[if $[OPT_MINSIZE],,FORCE_INLINING]
  222. #endif
  223. // Note: all Opts will link w/debug info now
  224. #define LINKER_FLAGS /DEBUG $[PROFILE_FLAG] $[if $[eq $[USE_COMPILER],MSVC9x64], /MACHINE:X64,] /MAP $[MAPINFOFLAGS] /fixed:no /incremental:no /stack:4194304
  225. // Added to avoid old iostream reference problems
  226. #define LINKER_FLAGS $[LINKER_FLAGS] /NODEFAULTLIB:LIBCI.LIB
  227. // Added to make pandatool function in VS 9
  228. #define LINKER_FLAGS $[LINKER_FLAGS] /NOD:MFC80.LIB /NOD:libcmtd /NOD:libc
  229. // ensure pdbs are copied to install dir
  230. #define build_pdbs yes
  231. ////////////////////
  232. // INTEL COMPILER //
  233. ////////////////////
  234. #elif $[eq $[USE_COMPILER], INTEL]
  235. #define COMPILER icl
  236. #define LINKER xilink
  237. #define LIBBER xilib
  238. #define COMMONFLAGS /DHAVE_DINKUM /Gi- /Qwd985 /Qvc7 /G6
  239. // Note: Zi cannot be used on multiproc builds with precomp hdrs, Z7 must be used instead
  240. #defer DEBUGPDBFLAGS /Zi /Qinline_debug_info /Fd"$[osfilename $[patsubst %.obj,%.pdb,$[target]]]"
  241. // Oy- needed for MS debugger
  242. #defer DEBUGFLAGS /Oy- /MDd $[BROWSEINFO_FLAG] $[DEBUGINFOFLAGS] $[DEBUGPDBFLAGS]
  243. #defer RELEASEFLAGS $[if $[ne $[LINK_FORCE_STATIC_RELEASE_C_RUNTIME],],/MT, /MD]
  244. #define WARNING_LEVEL_FLAG /W3
  245. #if $[DO_CROSSOBJ_OPT]
  246. #define OPT4FLAGS /Qipo
  247. #define LDFLAGS_OPT4 /Qipo
  248. #endif
  249. // NODEFAULTLIB ensures static libs linked in will connect to the correct msvcrt, so no debug/release mixing occurs
  250. #define LDFLAGS_OPT1 /NODEFAULTLIB:MSVCRT.LIB
  251. #define LDFLAGS_OPT2 /NODEFAULTLIB:MSVCRT.LIB
  252. #define LDFLAGS_OPT3 /NODEFAULTLIB:MSVCRTD.LIB /OPT:REF
  253. #define LDFLAGS_OPT4 /NODEFAULTLIB:MSVCRTD.LIB /OPT:REF $[LDFLAGS_OPT4]
  254. // #define OPTFLAGS /O3 /Qipo /QaxW /Qvec_report1
  255. #define OPTFLAGS /O3 /Qip
  256. // use "unsafe" QIfist flt->int rounding only if FAST_FLT_TO_INT is defined
  257. #define OPTFLAGS $[OPTFLAGS] $[if $[ne $[FAST_FLT_TO_INT],], /QIfist,]
  258. #define OPT1FLAGS /GZ /Od
  259. // We assume the Intel compiler installation dir is mounted as /ia32.
  260. #define EXTRA_LIBPATH /ia32/lib
  261. #define EXTRA_INCPATH /ia32/include
  262. #if $[or $[ne $[FORCE_INLINING],],$[>= $[OPTIMIZE],2]]
  263. #define EXTRA_CDEFS FORCE_INLINING $[EXTRA_CDEFS]
  264. #endif
  265. // Note: all Opts will link w/debug info now
  266. #define LINKER_FLAGS /DEBUG /DEBUGTYPE:CV $[PROFILE_FLAG] /MAP $[MAPINFOFLAGS] /fixed:no /incremental:no /stack:4194304
  267. // Added to avoid old iostream reference problems
  268. #define LINKER_FLAGS $[LINKER_FLAGS] /NODEFAULTLIB:LIBCI.LIB
  269. // ensure pdbs are copied to install dir
  270. #define build_pdbs yes
  271. #elif $[eq $[USE_COMPILER], BOUNDS] // NuMega BoundsChecker
  272. #define COMPILER nmcl
  273. #define LINKER nmlink
  274. #define LIBBER lib
  275. #define COMMONFLAGS
  276. #define OPTFLAGS /O2 /Ogity /G6
  277. #define OPT1FLAGS /GZ
  278. #defer DEBUGPDBFLAGS /MDd /Zi $[BROWSEINFO_FLAG] /Fd"$[osfilename $[patsubst %.obj,%.pdb,$[target]]]"
  279. #defer RELEASEFLAGS $[if $[ne $[LINK_FORCE_STATIC_RELEASE_C_RUNTIME],],/MT, /MD]
  280. #define EXTRA_LIBPATH
  281. #define EXTRA_INCPATH
  282. #if $[BOUNDS_TRUETIME] // NuMega BoundsChecker TrueTime Profiler
  283. // This may look like a bad thing (to extend the compiler
  284. // and linker with a switch), but I think it's the right
  285. // thing to do in this case -- skyler.
  286. #define COMPILER $[COMPILER] /NMttOn
  287. #define LINKER $[LINKER] /NMttOn
  288. #endif
  289. #elif $[eq $[USE_COMPILER], TRUETIME] // NuMega TrueTime Profiler
  290. // This may look like a bad thing (to extend the compiler
  291. // and linker with a switch), but I think it's the right
  292. // thing to do in this case -- skyler.
  293. #define COMPILER nmcl /NMttOn
  294. #define LINKER nmlink /NMttOn
  295. #define LIBBER lib
  296. #define COMMONFLAGS
  297. #define OPTFLAGS /O2 /Ogity /G6
  298. #define OPT1FLAGS /GZ
  299. #defer DEBUGPDBFLAGS /MDd /Zi $[BROWSEINFO_FLAG] /Fd"$[osfilename $[patsubst %.obj,%.pdb,$[target]]]"
  300. #defer RELEASEFLAGS $[if $[ne $[LINK_FORCE_STATIC_RELEASE_C_RUNTIME],],/MT, /MD]
  301. #define EXTRA_LIBPATH
  302. #define EXTRA_INCPATH
  303. #else
  304. #error Invalid value specified for USE_COMPILER.
  305. #endif
  306. #if $[CHECK_SYNTAX_ONLY]
  307. #define END_CFLAGS $[END_CFLAGS] /Zs
  308. #endif
  309. #if $[GEN_ASSEMBLY]
  310. // Note: Opt4 /GL will cause /FAs to not generate .asm! Must remove /GL for /FAs to work!
  311. #define END_CFLAGS $[END_CFLAGS] /FAs
  312. #endif
  313. #if $[PREPROCESSOR_OUTPUT]
  314. #define END_CFLAGS $[END_CFLAGS] /E
  315. #endif
  316. #defer tau_opts $[decygwin %,-I"%",$[EXTRA_INCPATH] $[ipath] $[WIN32_PLATFORMSDK_INCPATH] $[tau_ipath]] $[building_var:%=-D%]
  317. #if $[eq $[USE_COMPILER], MSVC9x64]
  318. #defer TAU_MAKE_IL $[PDT_ROOT]/Windows/bin/edgcpfe -o $[il_source] $[tau_opts] $[cdefines:%=-D%] $[C++FLAGS] -DWIN64=1 $[TAU_INSTRUMENTOR_FLAGS] $[source]
  319. #else
  320. #defer TAU_MAKE_IL $[PDT_ROOT]/Windows/bin/edgcpfe -o $[il_source] $[tau_opts] $[cdefines:%=-D%] $[C++FLAGS] -DWIN32=1 $[TAU_INSTRUMENTOR_FLAGS] $[source]
  321. #endif
  322. #defer TAU_MAKE_PDB $[PDT_ROOT]/Windows/bin/taucpdisp $[il_source] > $[pdb_source]
  323. #defer TAU_MAKE_INST $[TAU_ROOT]/bin/tau_instrumentor $[pdb_source] $[source] -o $[inst_source]