File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
recipes/libmicrohttpd/all Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ def generate(self):
92
92
if is_msvc (self ):
93
93
tc = MSBuildToolchain (self )
94
94
tc .configuration = self ._msvc_configuration
95
+ tc .properties ["WholeProgramOptimization" ] = "false"
95
96
tc .generate ()
96
97
else :
97
98
VirtualBuildEnv (self ).generate ()
@@ -128,16 +129,14 @@ def _msvc_sln_folder(self):
128
129
def build (self ):
129
130
apply_conandata_patches (self )
130
131
if is_msvc (self ):
131
- # No whole program optimization
132
+ #==============================
133
+ # TODO: to remove once https://github.com/conan-io/conan/pull/12817 available in conan client
132
134
vcxproj_file = os .path .join (self ._msvc_sln_folder , "libmicrohttpd.vcxproj" )
133
135
replace_in_file (
134
136
self , vcxproj_file ,
135
137
"<WholeProgramOptimization Condition=\" ! $(Configuration.StartsWith('Debug'))\" >true</WholeProgramOptimization>" ,
136
138
"" ,
137
139
)
138
-
139
- #==============================
140
- # TODO: to remove once https://github.com/conan-io/conan/pull/12817 available in conan client
141
140
toolset = MSBuildToolchain (self ).toolset
142
141
replace_in_file (
143
142
self , vcxproj_file ,
You can’t perform that action at this time.
0 commit comments