mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[svn-r19364] Bug Fix: ID 2019
Description: The development (--disable-production) mode ran a long time, especially on the testhdf5 (select) that exceeded the wall clock 10 minutes limits and was terminated. It turned out the development had DEBUG_CFLAG set to "-g -xildoff".\ The -xildoff was added back when h5detect had errors when -g only was used. But that bug does not exist any more since when only -g is used to build, h5detect did not fail and all tests passed. Therefore -xildoff is removed. Furthermore, when "-g -O" is used to build the library, debuggers such as dbx can still use the executable, though some debugging ability like displaying local variables is not available in optimized code. But overall execution time shorten. Therefore, the C, Fortran aand CXX DEBUG flags are all set to "-g -O" by default. Tested: in Linew using the default development mode because the changes affect only the Sun platform.
This commit is contained in:
parent
073eb187d6
commit
70b6246eae
@ -32,7 +32,9 @@ fi
|
||||
# Try solaris native compiler flags
|
||||
if test "X-" = "X-$cc_flags_set"; then
|
||||
H5_CFLAGS="$H5_CFLAGS -erroff=%none -DBSD_COMP"
|
||||
DEBUG_CFLAGS="-g -xildoff"
|
||||
# -g produces rather slow code. "-g -O" produces much faster code with some
|
||||
# loss of debugger functions such as not able to print local variables.
|
||||
DEBUG_CFLAGS="-g -O"
|
||||
DEBUG_CPPFLAGS=
|
||||
PROD_CFLAGS="-O -s"
|
||||
PROD_CPPFLAGS=
|
||||
@ -68,7 +70,9 @@ if test "X-" = "X-$f9x_flags_set"; then
|
||||
F9XSUFFIXFLAG=""
|
||||
FSEARCH_DIRS=""
|
||||
H5_FCFLAGS="$H5_FCFLAGS"
|
||||
DEBUG_FCFLAGS="-g"
|
||||
# -g produces rather slow code. "-g -O" produces much faster code with some
|
||||
# loss of debugger functions such as not able to print local variables.
|
||||
DEBUG_FCFLAGS="-g -O"
|
||||
PROD_FCFLAGS="-O2"
|
||||
PROFILE_FCFLAGS=""
|
||||
f9x_flags_set=yes
|
||||
@ -103,7 +107,9 @@ fi
|
||||
if test -z "$cxx_flags_set"; then
|
||||
H5_CXXFLAGS="$H5_CXXFLAGS -instances=static"
|
||||
H5_CPPFLAGS="$H5_CPPFLAGS -LANG:std"
|
||||
DEBUG_CXXFLAGS=-g
|
||||
# -g produces rather slow code. "-g -O" produces much faster code with some
|
||||
# loss of debugger functions such as not able to print local variables.
|
||||
DEBUG_CXXFLAGS="-g -O"
|
||||
DEBUG_CPPFLAGS=
|
||||
PROD_CXXFLAGS="-O -s"
|
||||
PROD_CPPFLAGS=
|
||||
|
Loading…
Reference in New Issue
Block a user