(cherry picked from commit 94036474c2b424ac19c4e8e30b5b026210649789) Signed-off-by: Domen Kožar <domen@dev.si>
The error was due to the fact that with-introduced bindings have lower priority and we do have `darwin` in scope already. Fixes #12350. Closes #12351. (A slightly different fix. I chose this to lower the risk of people re-introducing the mistake.)
This builds PhantomJS 2 from source in contrast to PhantomJS 1, for which static binary builds are available.