summaryrefslogtreecommitdiff
path: root/auto/cc/msvc
diff options
context:
space:
mode:
Diffstat (limited to 'auto/cc/msvc')
-rw-r--r--auto/cc/msvc15
1 files changed, 15 insertions, 0 deletions
diff --git a/auto/cc/msvc b/auto/cc/msvc
index d4c0be4c3..567bac7bc 100644
--- a/auto/cc/msvc
+++ b/auto/cc/msvc
@@ -22,6 +22,21 @@ have=NGX_COMPILER value="\"cl $NGX_MSVC_VER\"" . auto/define
ngx_msvc_ver=`echo $NGX_MSVC_VER | sed -e 's/^\([0-9]*\).*/\1/'`
+# detect x64 builds
+
+case "$NGX_MSVC_VER" in
+
+ *x64)
+ NGX_MACHINE=amd64
+ ;;
+
+ *)
+ NGX_MACHINE=i386
+ ;;
+
+esac
+
+
# optimizations
# maximize speed, equivalent to -Og -Oi -Ot -Oy -Ob2 -Gs -GF -Gy