[webkit-reviews] review requested: [Bug 77533] [Qt] JSC build should handle --no-webkit2 option to avoid unwanted clean-builds : [Attachment 125095] Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 2 01:02:29 PST 2012


Nandor Huszka <Huszka.Nandor at stud.u-szeged.hu> has asked  for review:
Bug 77533: [Qt] JSC build should handle --no-webkit2 option to avoid unwanted
clean-builds
https://bugs.webkit.org/show_bug.cgi?id=77533

Attachment 125095: Patch
https://bugs.webkit.org/attachment.cgi?id=125095&action=review

------- Additional Comments from Nandor Huszka <Huszka.Nandor at stud.u-szeged.hu>
(In reply to comment #5)
I tried it, but it is impossible to indicate 3 cases with one bool variable.
I mean if we put this into isWK2():

if (checkForArgumentAndRemoveFromARGV("-2")) {
  $isWK2 = 0;
} elsif (checkForArgumentAndRemoveFromARGV("--no-webkit2")){
  $isWK2 = 1;
} else {
  $isWK2 = 0;
}

or other combination of ifs, it would be incorrect, I think.
I tried to write an isNotWK2() function, but if in it we use in it the $isWK2
too, its value depends on whether isWK2() or isNotWK2() function was called
sooner. But if we use a new, e.g. $isNotWK2 variable in it, it would be
incomprehensible why we use $isWK2 and $isNotWK2 too.

(In reply to comment #4)
Ok, I have done that, but I do not understand why can we pass on all the other
unchecked options in BUILD_WEBKIT_ARGS to the buildQMakeProjects.


More information about the webkit-reviews mailing list