compilerSettings.pp 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #if $[eq $[USE_COMPILER], MSVC]
  2. #define COMPILER cl
  3. #define LINKER link
  4. #define LIBBER lib
  5. #define COMMONFLAGS /Gi-
  6. #define OPTFLAGS /O2 /Ob1 /G6
  7. #define OPT1FLAGS /GZ
  8. #defer DEBUGFLAGS /MDd /Zi $[BROWSEINFO_FLAG] /Fd"$[osfilename $[target:%.obj=%.pdb]]"
  9. #define RELEASEFLAGS /MD
  10. // in case we have mixed intel/msvc build
  11. #define EXTRA_LIBPATH /ia32/lib
  12. #define EXTRA_INCPATH /ia32/include
  13. #elif $[eq $[USE_COMPILER], BOUNDS] // NuMega BoundsChecker
  14. #define COMPILER nmcl
  15. #define LINKER nmlink
  16. #define LIBBER lib
  17. #define COMMONFLAGS
  18. #define OPTFLAGS /O2 /Ogity /G6
  19. #define OPT1FLAGS /GZ
  20. #defer DEBUGFLAGS /MDd /Zi $[BROWSEINFO_FLAG] /Fd"$[osfilename $[target:%.obj=%.pdb]]"
  21. #define RELEASEFLAGS /MD
  22. #define EXTRA_LIBPATH
  23. #define EXTRA_INCPATH
  24. #if $[BOUNDS_TRUETIME] // NuMega BoundsChecker TrueTime Profiler
  25. // This may look like a bad thing (to extend the compiler
  26. // and linker with a switch), but I think it's the right
  27. // thing to do in this case -- skyler.
  28. #define COMPILER $[COMPILER] /NMttOn
  29. #define LINKER $[LINKER] /NMttOn
  30. #endif
  31. #elif $[eq $[USE_COMPILER], INTEL]
  32. #define COMPILER icl
  33. #define LINKER xilink
  34. #define LIBBER xilib
  35. #define COMMONFLAGS /Gi- /Qwd985
  36. // #define OPTFLAGS /O3 /G6 /Qvc6 /Qipo /QaxW /Qvec_report1
  37. #define OPTFLAGS /O3 /G6 /Qvc6 /Qip
  38. // Oy- needed for MS debugger
  39. #define DEBUGFLAGS /MDd /Zi /Qinline_debug_info /Oy-
  40. #define OPT1FLAGS /GZ /Od
  41. #define RELEASEFLAGS /MD
  42. // We assume the Intel compiler installation dir is mounted as /ia32.
  43. #define EXTRA_LIBPATH /ia32/lib
  44. #define EXTRA_INCPATH /ia32/include
  45. #else
  46. #error Invalid value specified for USE_COMPILER.
  47. #endif
  48. #if $[CHECK_SYNTAX_ONLY]
  49. #define END_CFLAGS $[END_CFLAGS] /Zs
  50. #endif
  51. #if $[GEN_ASSEMBLY]
  52. #define END_CFLAGS $[END_CFLAGS] /FAs
  53. #endif
  54. #if $[PREPROCESSOR_OUTPUT]
  55. #define END_CFLAGS $[END_CFLAGS] /E
  56. #endif