Mercurial > hg > nginx
comparison auto/cc/msvc @ 8129:3c4d81ea1338
Win32: OpenSSL compilation for x64 targets with MSVC.
To ensure proper target selection the NGX_MACHINE variable is now set
based on the MSVC compiler output, and the OpenSSL target is set based
on it.
This is not important as long as "no-asm" is used (as in misc/GNUmakefile
and win32 build instructions), but might be beneficial if someone is trying
to build OpenSSL with assembler code.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 23 Feb 2023 18:16:08 +0300 |
parents | 17b3efb45b17 |
children |
comparison
equal
deleted
inserted
replaced
8128:79c04253bc43 | 8129:3c4d81ea1338 |
---|---|
18 | 18 |
19 have=NGX_COMPILER value="\"cl $NGX_MSVC_VER\"" . auto/define | 19 have=NGX_COMPILER value="\"cl $NGX_MSVC_VER\"" . auto/define |
20 | 20 |
21 | 21 |
22 ngx_msvc_ver=`echo $NGX_MSVC_VER | sed -e 's/^\([0-9]*\).*/\1/'` | 22 ngx_msvc_ver=`echo $NGX_MSVC_VER | sed -e 's/^\([0-9]*\).*/\1/'` |
23 | |
24 | |
25 # detect x64 builds | |
26 | |
27 case "$NGX_MSVC_VER" in | |
28 | |
29 *x64) | |
30 NGX_MACHINE=amd64 | |
31 ;; | |
32 | |
33 *) | |
34 NGX_MACHINE=i386 | |
35 ;; | |
36 | |
37 esac | |
23 | 38 |
24 | 39 |
25 # optimizations | 40 # optimizations |
26 | 41 |
27 # maximize speed, equivalent to -Og -Oi -Ot -Oy -Ob2 -Gs -GF -Gy | 42 # maximize speed, equivalent to -Og -Oi -Ot -Oy -Ob2 -Gs -GF -Gy |