Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-2867

Strip debug information from the native executable unconditionally

XMLWordPrintable

      PR #13963 mistakenly stopped stripping debug information from the native
      executable when debug info generation is enabled resulting in both the
      native executable and the corresponding `.debug` file containing the
      debug information. Which also results in the native executable being
      larger when `-Dquarkus.native.debug.enabled` is used:

      ```
      $ du -hs quarkus-integration-test-main-999-SNAPSHOT-runner-nodebug
      108M quarkus-integration-test-main-999-SNAPSHOT-runner-nodebug

      $ du -hs quarkus-integration-test-main-999-SNAPSHOT-runner-debug
      182M quarkus-integration-test-main-999-SNAPSHOT-runner-debug

      $ du -hs quarkus-integration-test-main-999-SNAPSHOT-runner-debug.debug
      75M quarkus-integration-test-main-999-SNAPSHOT-runner-debug.debug
      ```

      Inspecting `quarkus-integration-test-main-999-SNAPSHOT-runner-debug` and
      `quarkus-integration-test-main-999-SNAPSHOT-runner-debug` with
      `readelf --debug-dump=info` we observe that both files are containing
      debug information while only the latter should contain them.

            Unassigned Unassigned
            probinso_jira Quarkus JIRA Bot (Inactive)
            Fedor Dudinskii Fedor Dudinskii
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: