Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
8e911a96
Commit
8e911a96
authored
20 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Always turn on "-g" CFLAG so that debugger works properly with srun.
parent
d46a2773
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
auxdir/x_ac_debug.m4
+6
-1
6 additions, 1 deletion
auxdir/x_ac_debug.m4
with
6 additions
and
1 deletion
auxdir/x_ac_debug.m4
+
6
−
1
View file @
8e911a96
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
# If CFLAGS are not passed to configure, they will be set based
# If CFLAGS are not passed to configure, they will be set based
# on whether debugging has been enabled. Also, the NDEBUG macro
# on whether debugging has been enabled. Also, the NDEBUG macro
# (used by assert) will be set accordingly.
# (used by assert) will be set accordingly.
# Always enable "-g" debug flag so debugger can work with srun.
#
#
# WARNINGS:
# WARNINGS:
# This macro must be placed after AC_PROG_CC or equivalent.
# This macro must be placed after AC_PROG_CC or equivalent.
...
@@ -30,9 +31,13 @@ AC_DEFUN([X_AC_DEBUG],
...
@@ -30,9 +31,13 @@ AC_DEFUN([X_AC_DEBUG],
esac
esac
]
]
)
)
if test -z "$ac_save_CFLAGS"; then
test "$ac_cv_prog_cc_g" = yes && CFLAGS="-g $CFLAGS"
fi
if test "$ac_debug" = yes; then
if test "$ac_debug" = yes; then
if test -z "$ac_save_CFLAGS"; then
if test -z "$ac_save_CFLAGS"; then
test "$ac_cv_prog_cc_g" = yes && CFLAGS="-g $CFLAGS"
test "$GCC" = yes &&
test "$GCC" = yes &&
CFLAGS="-Wall -fno-strict-aliasing $CFLAGS"
CFLAGS="-Wall -fno-strict-aliasing $CFLAGS"
AC_DEFINE(DEBUG_SYSTEM, 1, [Define for extra debug messages.])
AC_DEFINE(DEBUG_SYSTEM, 1, [Define for extra debug messages.])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment