Mercurial > hgrepos > Python > libs > ConfigMix
comparison windows-dev/Configure.py @ 580:48e79cbd2481
Employ compiler optimizations for pure MSVC builds also.
This is currently just the the record.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 09 Jan 2022 00:58:26 +0100 |
| parents | 854593461592 |
| children | 91e74fb1ea90 |
comparison
equal
deleted
inserted
replaced
| 579:854593461592 | 580:48e79cbd2481 |
|---|---|
| 276 | 276 |
| 277 ccflags.append("/Zi") | 277 ccflags.append("/Zi") |
| 278 ccflags.append("/MD") # link to dll runtime | 278 ccflags.append("/MD") # link to dll runtime |
| 279 #ccflags.append("/EHsc") # no C++ here | 279 #ccflags.append("/EHsc") # no C++ here |
| 280 ccflags.append("/Gy") # enable function level linking | 280 ccflags.append("/Gy") # enable function level linking |
| 281 ccflags.append("/O2") | |
| 281 | 282 |
| 282 # XXX TBD machine | 283 # XXX TBD machine |
| 283 if tool.clang: | 284 if tool.clang: |
| 284 ccflags.append("--target=x86_64-pc-windows-msvc") | 285 ccflags.append("--target=x86_64-pc-windows-msvc") |
| 285 else: | 286 else: |
| 297 ldflags.append("/manifest:NO") | 298 ldflags.append("/manifest:NO") |
| 298 | 299 |
| 299 | 300 |
| 300 if tool.clang: | 301 if tool.clang: |
| 301 ccflags.append("-fms-compatibility-version=16.00") | 302 ccflags.append("-fms-compatibility-version=16.00") |
| 302 ccflags.append("-O2") | |
| 303 | 303 |
| 304 ccwarnings.append("-Wno-nonportable-include-path") | 304 ccwarnings.append("-Wno-nonportable-include-path") |
| 305 ccwarnings.append("-Wno-microsoft-template") | 305 ccwarnings.append("-Wno-microsoft-template") |
| 306 ccwarnings.append("-Wno-pragma-pack") | 306 ccwarnings.append("-Wno-pragma-pack") |
| 307 elif host.posix: | 307 elif host.posix: |
