Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Enable optimizations for nmake builds |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
374778db1b71d1a5497ba547e59235d9 |
User & Date: | ashok 2017-09-16 12:10:29.911 |
Context
2017-09-18
| ||
07:44 | Update to nmakehlp.c from Tcl with enhanced linker opts testing check-in: 5726f0204c user: ashok tags: trunk | |
2017-09-16
| ||
12:10 | Enable optimizations for nmake builds check-in: 374778db1b user: ashok tags: trunk | |
2017-09-01
| ||
15:06 | Merged changes for updating to new nmake configuration check-in: 27cfdd09ff user: ashok tags: trunk | |
Changes
Changes to win/rules.vc.
︙ | ︙ | |||
114 115 116 117 118 119 120 | !endif #---------------------------------------------------------- # Test for compiler features #---------------------------------------------------------- ### test for optimizations | | | | | | | > > < | < > > > < < < | > > | 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 | !endif #---------------------------------------------------------- # Test for compiler features #---------------------------------------------------------- ### test for optimizations !if [nmakehlp -c -O2] !message *** Compiler has 'Optimizations' OPTIMIZING = 1 !else !message *** Compiler does not have 'Optimizations' OPTIMIZING = 0 !endif # /O2 optimization includes /Og /Oi /Ot /Oy /Ob2 /Gs /GF /Gy as per # documentation. Note we do NOT want /Gs as that inserts a _chkstk # stack probe at *every* function entry, not just those with more than # a page of stack allocation resulting in a performance hit. However, # /O2 documentation is misleading as its stack probes are simply the # default page size locals allocation probes and not what is implied # by an explicit /Gs option. OPTIMIZATIONS = -O2 # -Op improves float consistency. Note only needed for older compilers # Newer compilers do not need or support this option. !if [nmakehlp -c -Op] OPTIMIZATIONS = $(OPTIMIZATIONS) -Op !endif # Strict floating point semantics !if [nmakehlp -c -fp:strict] OPTIMIZATIONS = $(OPTIMIZATIONS) -fp:strict !endif # Enable security checks for buffer overflows !if [nmakehlp -c -GS] OPTIMIZATIONS = $(OPTIMIZATIONS) -GS !endif # Whole program optimization. Note this makes the generated libraries # potentially incompatible with other versions of Visual C++ !if [nmakehlp -c -GL] OPTIMIZATIONS = $(OPTIMIZATIONS) -GL !endif DEBUGFLAGS = !if [nmakehlp -c -RTC1] |
︙ | ︙ |