Changeset 275686 in webkit
- Timestamp:
- Apr 8, 2021, 4:04:46 PM (4 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r275682 r275686 1 2021-04-08 David Kilzer <ddkilzer@apple.com> 2 3 REGRESSION (r275150): set-webkit-configuration is too aggressive at deleting config files when coverage/sanitizer switch is not set 4 <https://webkit.org/b/224343> 5 6 Reviewed by Mark Lam. 7 8 * Scripts/set-webkit-configuration: 9 (updateOrDeleteConfigurationFile): 10 - Change to take enabled and disabled arguments, and only 11 reset (unlink) a config file if the --no-<option> is 12 explicitly set. 13 1 14 2021-04-08 Kate Cheney <katherine_cheney@apple.com> 2 15 -
trunk/Tools/Scripts/set-webkit-configuration
r275534 r275686 52 52 sub printCurrentSettings(); 53 53 sub printUsage(); 54 sub updateOrDeleteConfigurationFile($$ );54 sub updateOrDeleteConfigurationFile($$$); 55 55 56 56 my $configuration = passedConfiguration(); … … 130 130 } 131 131 132 sub updateOrDeleteConfigurationFile($$)133 {134 my ($fileName, $contents) = @_;135 my $filePath = File::Spec->catfile($baseProductDir, $fileName);136 if ($contents) {137 open FILE, ">", $filePath or die;138 print FILE $contents;139 close FILE;140 } else {141 unlink $filePath;142 }143 }144 145 132 if ($configuration) { 146 133 open CONFIGURATION, ">", "$baseProductDir/Configuration" or die; … … 159 146 } 160 147 161 updateOrDeleteConfigurationFile("ASan", $enableASAN ? "YES" : undef);162 updateOrDeleteConfigurationFile("Coverage", $enableCoverage ? "YES" : undef);163 updateOrDeleteConfigurationFile("TSan", $enableTSAN ? "YES" : undef);164 updateOrDeleteConfigurationFile("UBSan", $enableUBSAN ? "YES" : undef);148 updateOrDeleteConfigurationFile("ASan", $enableASAN, $disableASAN); 149 updateOrDeleteConfigurationFile("Coverage", $enableCoverage, $disableCoverage); 150 updateOrDeleteConfigurationFile("TSan", $enableTSAN, $disableTSAN); 151 updateOrDeleteConfigurationFile("UBSan", $enableUBSAN, $disableUBSAN); 165 152 166 153 if ($forceOptimizationLevel && $forceOptimizationLevel eq "none") { … … 202 189 printCurrentSettings(); 203 190 } 191 192 sub updateOrDeleteConfigurationFile($$$) 193 { 194 my ($fileName, $shouldEnable, $shouldDisable) = @_; 195 my $filePath = File::Spec->catfile($baseProductDir, $fileName); 196 if ($shouldEnable) { 197 open FILE, ">", $filePath or die; 198 print FILE "YES"; 199 close FILE; 200 } elsif ($shouldDisable) { 201 unlink $filePath; 202 } 203 }
Note:
See TracChangeset
for help on using the changeset viewer.