Changeset 268870 in webkit
- Timestamp:
- Oct 22, 2020, 10:31:05 AM (6 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
Scripts/build-jsc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r268865 r268870 1 2020-10-22 Angelos Oikonomopoulos <angelos@igalia.com> 2 3 Detect unrecognized options in build-jsc 4 https://bugs.webkit.org/show_bug.cgi?id=218077 5 6 Reviewed by Yusuke Suzuki. 7 8 Currently, Getopt::Long is configured with pass_through, in order to 9 be able to forward arbitrary arguments in buildMyProject. However, that 10 means that typos in option names (e.g. using --cmake-args instead of 11 --cmakeargs) go undetected and the option is silently ignored. 12 13 For cmake builds, there is no such forwarding, so check that there are 14 no remaining arguments in ARGV and refuse to continue if so. This runs 15 the risk of breaking wrapper scripts that incorrectly pass unrecognized 16 options, but that seems like a good thing. 17 18 * Scripts/build-jsc: 19 1 20 2020-10-22 Peng Liu <peng.liu6@apple.com> 2 21 -
trunk/Tools/Scripts/build-jsc
r268200 r268870 156 156 157 157 if (isCMakeBuild()) { 158 if (scalar(@ARGV) > 0) { 159 foreach (@ARGV) { 160 my $arg = $_; 161 if ($arg =~ /^-.*/) { 162 print STDERR "Unrecognized option `$arg'\n"; 163 } else { 164 print STDERR "Stray anonymous argument `$arg'\n"; 165 } 166 } 167 exit 2; 168 } 158 169 if ($forceCLoop) { 159 170 push @cmakeArgs, " -DENABLE_JIT=OFF";
Note:
See TracChangeset
for help on using the changeset viewer.