Summary: | support for "source" attribute for javac with build.compiler=gcj | ||
---|---|---|---|
Product: | Ant | Reporter: | Paweł Zuzelski <pzz> |
Component: | Core tasks | Assignee: | Ant Notifications List <notifications> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | notifications |
Priority: | P2 | Keywords: | PatchAvailable |
Version: | 1.7.1 | ||
Target Milestone: | 1.8.0 | ||
Hardware: | All | ||
OS: | All | ||
Attachments: | support for "source" attribute for javac with build.compiler=gcj |
Do you know which version of gcj was/is the first to support -source? (In reply to comment #1) > Do you know which version of gcj was/is the first to support -source? > No, I don't know. I use 4.3.2. BTW in gcj it is "-fsource" not "-source" (In reply to comment #1) > Do you know which version of gcj was/is the first to support -source? > If I understand gcc/java/ChangeLog correctly, this "-fsource" option was introduced 2006-06-04. That means the first release that supports this option is GCC 4.0.4. But I am not sure. committed as svn revision 738761 I've also added support for -ftarget while I was at it. |
Created attachment 23186 [details] support for "source" attribute for javac with build.compiler=gcj When build.compiler is set to gcj, ant ignores "source" attribute, so it is not possible to compile code compatibile with java < 1.5 with gcj using ant. I have attached a simple patch for ant-1.7.1 sources that fixes it. Please consider applying this patch to ant sources.