Skip to content

Change default debug flag in compile - #1664

Merged
feldergast merged 1 commit into
sstsimulator:develfrom
gvoskuilen:debug-symbols
Nov 12, 2026
Merged

feldergast merged 1 commit into
sstsimulator:develfrom
gvoskuilen:debug-symbols

Conversation

@gvoskuilen

Copy link
Copy Markdown
Contributor

Build with -g1 by default instead of -g
-g1 keeps function names and line tables for backtraces while greatly reducing compile memory, compile time, and binary size.

Compile settings and debug output continue to be exported to sst-elements.

  • --enable-debug now enables both debug output (__SST_DEBUG_OUTPUT__) and full debug symbols (-g)
  • A new --enable-debug-symbols flag sets -g without setting debug output
  • A new --enable-debug-output flags sets debug output but does not change the compile flag
  • User-supplied CFLAGS and CXXFLAGS are not modified and continue to work as they did.

Addresses #1661.

…bug-output

-g1 keeps function names and line tables for backtraces while greatly
reducing compile memory, compile time, and binary size. --enable-debug now
enables both debug output and full debug symbols (-g); each can be
controlled separately. The debug symbol setting is exported to sst-config
as DEBUG_SYMBOLS so sst-elements can follow it. User-supplied CFLAGS and
CXXFLAGS are not modified.
@gvoskuilen gvoskuilen added this to the SST V17.0.0 milestone Nov 12, 2026
@gvoskuilen gvoskuilen self-assigned this Nov 12, 2026
@github-actions github-actions Bot added AT: WIP Mark PR as a Work in Progress (No Autotesting Performed) AT: CLANG-FORMAT PASS and removed AT: WIP Mark PR as a Work in Progress (No Autotesting Performed) labels Nov 12, 2026
@sst-autotester

Copy link
Copy Markdown
Contributor

Status Flag 'Pre-Test Inspection' - Auto Inspected - Inspection is Not Necessary for this Pull Request.

@sst-autotester

Copy link
Copy Markdown
Contributor

Status Flag 'Pull Request AutoTester' - Testing Jenkins Projects:

Pull Request Auto Testing STARTING (click to expand)

Build Information

Test Name: SST__Autotest_sst-test_OMPI-4.1.4_PY3.9_sst-elements

  • Build Num: 2957
  • Status: STARTED

Build Information

Test Name: SST__Autotest_sst-test_OMPI-4.1.4_PY3.9_sst-elements_MR-2

  • Build Num: 2896
  • Status: STARTED

Build Information

Test Name: SST__Autotest_sst-test_OMPI-4.1.4_PY3.9_sst-elements_MT-2

  • Build Num: 2894
  • Status: STARTED

Build Information

Test Name: SST__Autotest_sst-test_OMPI-4.1.4_PY3.9_sst-core_Make-Dist

  • Build Num: 1238
  • Status: STARTED

Build Information

Test Name: SST__Autotest_OSX-15-XC16_OMPI-4.1.6_PY3.10_sst-elements

  • Build Num: 1429
  • Status: STARTED

Using Repos:

Repo: CORE (gvoskuilen/sst-core)
  • Branch: debug-symbols
  • SHA: 82cd13c
  • Mode: TEST_REPO
Repo: SQE (sstsimulator/sst-sqe)
  • Branch: devel
  • SHA: 59935dd24b390962e4083e5f1c69b45afe3241aa
  • Mode: SUPPORT_REPO
Repo: ELEMENTS (sstsimulator/sst-elements)
  • Branch: devel
  • SHA: 0ba3b940eab57c8f1d19337285fe86f2a247b994
  • Mode: SUPPORT_REPO
Repo: MACRO (sstsimulator/sst-macro)
  • Branch: devel
  • SHA: 4f524aeda65401618bbd356f6782e419c5e05ca3
  • Mode: SUPPORT_REPO

Pull Request Author: gvoskuilen

@sst-autotester

Copy link
Copy Markdown
Contributor

Status Flag 'Pull Request AutoTester' - Jenkins Testing: all Jobs PASSED

Pull Request Auto Testing has PASSED (click to expand)

Build Information

Test Name: SST__Autotest_sst-test_OMPI-4.1.4_PY3.9_sst-elements

  • Build Num: 2957
  • Status: PASSED

Build Information

Test Name: SST__Autotest_sst-test_OMPI-4.1.4_PY3.9_sst-elements_MR-2

  • Build Num: 2896
  • Status: PASSED

Build Information

Test Name: SST__Autotest_sst-test_OMPI-4.1.4_PY3.9_sst-elements_MT-2

  • Build Num: 2894
  • Status: PASSED

Build Information

Test Name: SST__Autotest_sst-test_OMPI-4.1.4_PY3.9_sst-core_Make-Dist

  • Build Num: 1238
  • Status: PASSED

Build Information

Test Name: SST__Autotest_OSX-15-XC16_OMPI-4.1.6_PY3.10_sst-elements

  • Build Num: 1429
  • Status: PASSED

@sst-autotester

Copy link
Copy Markdown
Contributor

Status Flag 'Pre-Merge Inspection' - SUCCESS: The last commit to this Pull Request has been INSPECTED AND APPROVED by [ feldergast ]!

@sst-autotester

Copy link
Copy Markdown
Contributor

Status Flag 'Pull Request AutoTester' - Pull Request MUST BE MERGED MANUALLY BY Project Team - This Repo does not support Automerge

@feldergast
feldergast merged commit d0cfab2 into sstsimulator:devel Nov 12, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants