File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,11 @@ impl CmakeBuilder {
126
126
if opt_level. eq ( "1" ) || opt_level. eq ( "2" ) {
127
127
cmake_cfg. define ( "CMAKE_BUILD_TYPE" , "relwithdebinfo" ) ;
128
128
} else {
129
- cmake_cfg. define ( "CMAKE_BUILD_TYPE" , "release" ) ;
129
+ if opt_level. eq ( "s" ) || opt_level. eq ( "z" ) {
130
+ cmake_cfg. define ( "CMAKE_BUILD_TYPE" , "minsizerel" ) ;
131
+ } else {
132
+ cmake_cfg. define ( "CMAKE_BUILD_TYPE" , "release" ) ;
133
+ }
130
134
// TODO: Due to the nature of the FIPS build (e.g., its dynamic generation of
131
135
// assembly files and its custom compilation commands within CMake), not all
132
136
// source paths are stripped from the resulting binary.
Original file line number Diff line number Diff line change @@ -112,6 +112,8 @@ impl CmakeBuilder {
112
112
if opt_level. ne ( "0" ) {
113
113
if opt_level. eq ( "1" ) || opt_level. eq ( "2" ) {
114
114
cmake_cfg. define ( "CMAKE_BUILD_TYPE" , "relwithdebinfo" ) ;
115
+ } else if opt_level. eq ( "s" ) || opt_level. eq ( "z" ) {
116
+ cmake_cfg. define ( "CMAKE_BUILD_TYPE" , "minsizerel" ) ;
115
117
} else {
116
118
cmake_cfg. define ( "CMAKE_BUILD_TYPE" , "release" ) ;
117
119
}
You can’t perform that action at this time.
0 commit comments