|
|
2f6176 |
From e7ff390ef777bd818ccc6e6f8f3a56f36020abfe Mon Sep 17 00:00:00 2001
|
|
|
2f6176 |
From: Mat Booth <mat.booth@gmail.com>
|
|
|
2f6176 |
Date: Wed, 15 Sep 2021 10:21:53 +0100
|
|
|
2f6176 |
Subject: [PATCH 1/2] Always generate bytecode debuginfo
|
|
|
2f6176 |
|
|
|
2f6176 |
When ecj is used to build RPMs
|
|
|
2f6176 |
---
|
|
|
2f6176 |
.../jdt/internal/compiler/batch/Main.java | 23 +++++++++++++++++++
|
|
|
2f6176 |
1 file changed, 23 insertions(+)
|
|
|
2f6176 |
|
|
|
2f6176 |
diff --git a/org/eclipse/jdt/internal/compiler/batch/Main.java b/org/eclipse/jdt/internal/compiler/batch/Main.java
|
|
|
2f6176 |
index f77372d..73a0d24 100644
|
|
|
2f6176 |
--- a/org/eclipse/jdt/internal/compiler/batch/Main.java
|
|
|
2f6176 |
+++ b/org/eclipse/jdt/internal/compiler/batch/Main.java
|
|
|
2f6176 |
@@ -3109,6 +3109,29 @@ public void configure(String[] argv) {
|
|
|
bd3beb |
this.options.put(CompilerOptions.OPTION_Process_Annotations, CompilerOptions.ENABLED);
|
|
|
bd3beb |
}
|
|
|
bd3beb |
|
|
|
bd3beb |
+ {
|
|
|
bd3beb |
+ // If we're building an RPM, force full debugging info to
|
|
|
bd3beb |
+ // be generated, no matter what options have been passed
|
|
|
bd3beb |
+ // by Ant. This is something of a kludge, but it is far
|
|
|
bd3beb |
+ // better than the alternative, which is having class
|
|
|
bd3beb |
+ // files with debug info mysteriously missing.
|
|
|
bd3beb |
+
|
|
|
bd3beb |
+ String RpmPackageName = System.getenv("RPM_PACKAGE_NAME");
|
|
|
bd3beb |
+ String RpmArch = System.getenv("RPM_ARCH");
|
|
|
bd3beb |
+ String RpmBuildRoot = System.getenv("RPM_BUILD_ROOT");
|
|
|
bd3beb |
+ if (RpmPackageName != null && RpmArch != null && RpmBuildRoot != null) {
|
|
|
bd3beb |
+ this.options.put(
|
|
|
bd3beb |
+ CompilerOptions.OPTION_LocalVariableAttribute,
|
|
|
bd3beb |
+ CompilerOptions.GENERATE);
|
|
|
bd3beb |
+ this.options.put(
|
|
|
bd3beb |
+ CompilerOptions.OPTION_LineNumberAttribute,
|
|
|
bd3beb |
+ CompilerOptions.GENERATE);
|
|
|
bd3beb |
+ this.options.put(
|
|
|
bd3beb |
+ CompilerOptions.OPTION_SourceFileAttribute,
|
|
|
bd3beb |
+ CompilerOptions.GENERATE);
|
|
|
bd3beb |
+ }
|
|
|
bd3beb |
+ }
|
|
|
bd3beb |
+
|
|
|
bd3beb |
this.logger.logCommandLineArguments(newCommandLineArgs);
|
|
|
bd3beb |
this.logger.logOptions(this.options);
|
|
|
bd3beb |
|
|
|
2f6176 |
--
|
|
|
2f6176 |
2.31.1
|
|
|
2f6176 |
|