Update to 4.22 OBS-URL: https://build.opensuse.org/request/show/942804 OBS-URL: https://build.opensuse.org/package/show/Java:packages/ecj?expand=0&rev=49
37 lines
1.4 KiB
Diff
37 lines
1.4 KiB
Diff
### Eclipse Workspace Patch 1.0
|
|
#P org.eclipse.jdt.core
|
|
Index: ecj-4.22/org/eclipse/jdt/internal/compiler/batch/Main.java
|
|
===================================================================
|
|
--- ecj-4.22.orig/org/eclipse/jdt/internal/compiler/batch/Main.java
|
|
+++ ecj-4.22/org/eclipse/jdt/internal/compiler/batch/Main.java
|
|
@@ -3089,6 +3089,29 @@ public void configure(String[] argv) {
|
|
this.options.put(CompilerOptions.OPTION_Process_Annotations, CompilerOptions.ENABLED);
|
|
}
|
|
|
|
+ {
|
|
+ // If we're building an RPM, force full debugging info to
|
|
+ // be generated, no matter what options have been passed
|
|
+ // by Ant. This is something of a kludge, but it is far
|
|
+ // better than the alternative, which is having class
|
|
+ // files with debug info mysteriously missing.
|
|
+
|
|
+ String RpmPackageName = System.getenv("RPM_PACKAGE_NAME");
|
|
+ String RpmArch = System.getenv("RPM_ARCH");
|
|
+ String RpmBuildRoot = System.getenv("RPM_BUILD_ROOT");
|
|
+ if (RpmPackageName != null && RpmArch != null && RpmBuildRoot != null) {
|
|
+ this.options.put(
|
|
+ CompilerOptions.OPTION_LocalVariableAttribute,
|
|
+ CompilerOptions.GENERATE);
|
|
+ this.options.put(
|
|
+ CompilerOptions.OPTION_LineNumberAttribute,
|
|
+ CompilerOptions.GENERATE);
|
|
+ this.options.put(
|
|
+ CompilerOptions.OPTION_SourceFileAttribute,
|
|
+ CompilerOptions.GENERATE);
|
|
+ }
|
|
+ }
|
|
+
|
|
this.logger.logCommandLineArguments(newCommandLineArgs);
|
|
this.logger.logOptions(this.options);
|
|
|