summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2005-01-26 16:07:53 +0200
committerunknown <monty@mysql.com>2005-01-26 16:07:53 +0200
commit3c3ca269ec47566ed9a588c52c3671ca4225e53a (patch)
tree2b90bb4ebf84a63136bafd6b3aae767628e376f5 /BUILD
parenta898252a45b97a5bc3200c48bedb7471c588c712 (diff)
downloadmariadb-git-3c3ca269ec47566ed9a588c52c3671ca4225e53a.tar.gz
Only enable Innodb extra debugging when using the --debug=full configure option
BUILD/SETUP.sh: Abort if wrong options BUILD/compile-pentium64-debug: Always use full debugging innobase/fil/fil0fil.c: Fixed wrong printf() format
Diffstat (limited to 'BUILD')
-rwxr-xr-x[-rw-r--r--]BUILD/SETUP.sh8
-rwxr-xr-xBUILD/compile-pentium64-debug2
2 files changed, 7 insertions, 3 deletions
diff --git a/BUILD/SETUP.sh b/BUILD/SETUP.sh
index 5fe898878b9..77fab948121 100644..100755
--- a/BUILD/SETUP.sh
+++ b/BUILD/SETUP.sh
@@ -25,7 +25,10 @@ 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 ;;
+ * )
+ echo "Unknown option '$1'"
+ exit 1
+ break ;;
esac
done
@@ -62,6 +65,7 @@ fast_cflags="-O3 -fno-omit-frame-pointer"
reckless_cflags="-O3 -fomit-frame-pointer "
debug_cflags="-DUNIV_MUST_NOT_INLINE -DEXTRA_DEBUG -DFORCE_INIT_OF_VARS -DSAFEMALLOC -DPEDANTIC_SAFEMALLOC -DSAFE_MUTEX"
+debug_extra_cflags="-O1 -Wuninitialized"
base_cxxflags="-felide-constructors -fno-exceptions -fno-rtti"
amd64_cxxflags="-DBIG_TABLES"
@@ -80,7 +84,7 @@ local_infile_configs="--enable-local-infile"
debug_configs="--with-debug$full_debug"
if [ -z "$full_debug" ]
then
- debug_cflags="$debug_cflags -O1 -Wuninitialized"
+ debug_cflags="$debug_cflags $debug_extra_cflags"
fi
if gmake --version > /dev/null 2>&1
diff --git a/BUILD/compile-pentium64-debug b/BUILD/compile-pentium64-debug
index 1bbca36d851..0299669f79a 100755
--- a/BUILD/compile-pentium64-debug
+++ b/BUILD/compile-pentium64-debug
@@ -1,7 +1,7 @@
#! /bin/sh
path=`dirname $0`
-. "$path/SETUP.sh"
+. "$path/SETUP.sh" $@ --with-debug=full
extra_flags="$pentium64_cflags $debug_cflags"
c_warnings="$c_warnings $debug_extra_warnings"