make/windows/makefiles/sa.make

changeset 9602
adc49d072b7c
parent 9601
21884257c797
child 9637
eef07cd490d4
equal deleted inserted replaced
9601:21884257c797 9602:adc49d072b7c
99 99
100 checkAndBuildSA:: $(SAWINDBG) 100 checkAndBuildSA:: $(SAWINDBG)
101 101
102 !if "$(BUILD_FLAVOR)" == "debug" 102 !if "$(BUILD_FLAVOR)" == "debug"
103 SA_EXTRA_CFLAGS = -Od -D "_DEBUG" 103 SA_EXTRA_CFLAGS = -Od -D "_DEBUG"
104 !if "$(BUILDARCH)" == "i486"
105 SA_EXTRA_CFLAGS = $(SA_EXTRA_CFLAGS) -RTC1
106 !endif
104 !elseif "$(BUILD_FLAVOR)" == "fastdebug" 107 !elseif "$(BUILD_FLAVOR)" == "fastdebug"
105 SA_EXTRA_CFLAGS = -O2 -D "_DEBUG" 108 SA_EXTRA_CFLAGS = -O2 -D "_DEBUG"
106 !else 109 !else
107 SA_EXTRA_CFLAGS = -O2 110 SA_EXTRA_CFLAGS = -O2
108 !endif 111 !endif
115 # On amd64, VS2005 compiler requires bufferoverflowU.lib on the link command line, 118 # On amd64, VS2005 compiler requires bufferoverflowU.lib on the link command line,
116 # otherwise we get missing __security_check_cookie externals at link time. 119 # otherwise we get missing __security_check_cookie externals at link time.
117 SA_LD_FLAGS = bufferoverflowU.lib 120 SA_LD_FLAGS = bufferoverflowU.lib
118 !endif 121 !endif
119 !else 122 !else
120 SA_CFLAGS = -nologo $(MS_RUNTIME_OPTION) -W3 -Gm $(GX_OPTION) -D "WIN32" -D "_WINDOWS" -D "_CONSOLE" -D "_MBCS" -YX -FD -GZ -c 123 SA_CFLAGS = -nologo $(MS_RUNTIME_OPTION) -W3 -Gm $(GX_OPTION) -D "WIN32" -D "_WINDOWS" -D "_CONSOLE" -D "_MBCS" -YX -FD -c
121 !if "$(ENABLE_FULL_DEBUG_SYMBOLS)" == "1" 124 !if "$(ENABLE_FULL_DEBUG_SYMBOLS)" == "1"
122 SA_CFLAGS = $(SA_CFLAGS) -ZI 125 # -ZI is incompatible with -O2 used for release/fastdebug builds.
126 # Using -Zi instead.
127 SA_CFLAGS = $(SA_CFLAGS) -Zi
123 !endif 128 !endif
124 !endif 129 !endif
125 !if "$(MT)" != "" 130 !if "$(MT)" != ""
126 SA_LD_FLAGS = -manifest $(SA_LD_FLAGS) 131 SA_LD_FLAGS = -manifest $(SA_LD_FLAGS)
127 !endif 132 !endif

mercurial