Don't use -safeseh with ml64

This commit is contained in:
Anthony Green
2010-08-05 09:02:41 -04:00
parent c1d28ba8d5
commit bda487e870
8 changed files with 4484 additions and 1 deletions

View File

@@ -46,6 +46,7 @@ args="-nologo"
md=-MD
cl="cl"
ml="ml"
safeseh="-safeseh"
output=
while [ $# -gt 0 ]
@@ -63,6 +64,7 @@ do
-m64)
cl="cl" # "$MSVC/x86_amd64/cl"
ml="ml64" # "$MSVC/x86_amd64/ml64"
safeseh=
shift 1
;;
-O*)
@@ -164,7 +166,7 @@ if [ -n "$assembly" ]; then
echo "$cl -nologo -EP $includes $defines $src > $ppsrc"
"$cl" -nologo -EP $includes $defines $src > $ppsrc || exit $?
output="$(echo $output | sed 's%/F[dpa][^ ]*%%g')"
args="-nologo -safeseh $single $output $ppsrc"
args="-nologo $safeseh $single $output $ppsrc"
echo "$ml $args"
eval "\"$ml\" $args"