-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Rakefile: closure_compile force 32bit mode only when java supports it #1719
Conversation
Some Java installs don't have '-d32' flag (e.g. OpenJDK which is standard for some Linux systems), and the closure_compile fails because of forcing that flag. Test, and only run in faster 32bit mode if supported, or else just run with no flag (default mode).
Thanks for your contribution! In order for us to be able to accept it, we ask you to sign our CLA (contributor's license agreement). CLA is important for us to be able to avoid legal troubles down the road. For individuals (a simple click-through form): For corporations (print, sign and scan+email, fax or mail): |
Okay, signed it. :) |
Hi, any update on this one? |
Okay, makes sense :) I'll keep an eye out for #1544 ... |
@imrehg : I can't get this to work. The java command line does not return a fail code. |
@petebacondarwin what's your system and java version? |
Windows 7 SP1 - 64bit But you can also see it failing on Travis: 32-bit Ubuntu Linux 12.04 (server edition) [according to their docs]. On 16 January 2013 13:29, Gergely Imreh [email protected] wrote:
|
Weird, the previous build has passed: https://travis-ci.org/angular/angular.js/builds/3713996 and I have tested it on Windows 7 SP1 - 64-bit, though at the original submission I think it was 1.7.0_9 or _10, so it feels maybe things have changed since this patch was submitted? Will double-check these in a bit, I have access to Windows only elsewhere.
|
this should do the trick:
|
I made some changes to your commit and landed it as 3c8583e thanks! |
Some Java installs don't have '-d32' flag (e.g. OpenJDK which is standard
for some Linux systems), and the closure_compile fails because of forcing
that flag. Test, and only run in faster 32bit mode if supported, or
else just run with no flag (default mode).