2
0

compilerSettings.pp 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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]
  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. #elif $[eq $[USE_COMPILER], INTEL]
  25. #define COMPILER icl
  26. #define LINKER xilink
  27. #define LIBBER xilib
  28. #define COMMONFLAGS /Gi- /Qwd985
  29. // #define OPTFLAGS /O3 /G6 /Qvc6 /Qipo /QaxW /Qvec_report1
  30. #define OPTFLAGS /O3 /G6 /Qvc6 /Qip
  31. // Oy- needed for MS debugger
  32. #define DEBUGFLAGS /MDd /Zi /Qinline_debug_info /Oy-
  33. #define OPT1FLAGS /GZ /Od
  34. #define RELEASEFLAGS /MD
  35. // We assume the Intel compiler installation dir is mounted as /ia32.
  36. #define EXTRA_LIBPATH /ia32/lib
  37. #define EXTRA_INCPATH /ia32/include
  38. #else
  39. #error Invalid value specified for USE_COMPILER.
  40. #endif
  41. #if $[CHECK_SYNTAX_ONLY]
  42. #define END_CFLAGS $[END_CFLAGS] /Zs
  43. #endif
  44. #if $[GEN_ASSEMBLY]
  45. #define END_CFLAGS $[END_CFLAGS] /FAs
  46. #endif
  47. #if $[PREPROCESSOR_OUTPUT]
  48. #define END_CFLAGS $[END_CFLAGS] /E
  49. #endif