Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
45c2f152
Commit
45c2f152
authored
Oct 04, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't compile -O1 if --with-debug=full (as it can optimize away the call stack)
parent
90295730
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
BUILD/SETUP.sh
BUILD/SETUP.sh
+9
-2
No files found.
BUILD/SETUP.sh
View file @
45c2f152
...
...
@@ -6,6 +6,7 @@ fi
just_print
=
just_configure
=
full_debug
=
while
test
$#
-gt
0
do
case
"
$1
"
in
...
...
@@ -21,6 +22,7 @@ Any other options will be passed directly to configure.
Note: this script is intended for internal use by MySQL developers.
EOF
--with-debug
=
full
)
full_debug
=
"=full"
;
shift
;;
*
)
break
;;
esac
done
...
...
@@ -48,7 +50,8 @@ fast_cflags="-O3 -fno-omit-frame-pointer"
# this is one is for someone who thinks 1% speedup is worth not being
# able to backtrace
reckless_cflags
=
"-O3 -fomit-frame-pointer "
debug_cflags
=
"-DUNIV_MUST_NOT_INLINE -DEXTRA_DEBUG -DFORCE_INIT_OF_VARS -DSAFEMALLOC -DPEDANTIC_SAFEMALLOC -DSAFE_MUTEX -O1 -Wuninitialized"
debug_cflags
=
"-DUNIV_MUST_NOT_INLINE -DEXTRA_DEBUG -DFORCE_INIT_OF_VARS -DSAFEMALLOC -DPEDANTIC_SAFEMALLOC -DSAFE_MUTEX"
base_cxxflags
=
"-felide-constructors -fno-exceptions -fno-rtti"
...
...
@@ -62,7 +65,11 @@ sparc_configs=""
# and unset local_infile_configs
local_infile_configs
=
"--enable-local-infile"
debug_configs
=
"--with-debug"
debug_configs
=
"--with-debug
$full_debug
"
if
[
-z
"
$full_debug
"
]
then
debug_cflags
=
"
$debug_cflags
-O1 -Wuninitialized"
fi
if
gmake
--version
>
/dev/null 2>&1
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment