llvm.org GIT mirror llvm / 7fd82e5
Enable -g with DEBUG_SYMBOLS and --enable-debug-symbols instead of DEBUG_RUNTIME. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82906 91177308-0d34-0410-b5e6-96231b3b80d8 Jeffrey Yasskin 10 years ago
4 changed file(s) with 61 addition(s) and 27 deletion(s). Raw diff Collapse all Expand all
244244 #DEBUG_RUNTIME = 1
245245 @DEBUG_RUNTIME@
246246
247 # When DEBUG_SYMBOLS is enabled, the compiler libraries will retain debug
248 # symbols.
249 #DEBUG_SYMBOLS = 1
250 @DEBUG_SYMBOLS@
251
247252 # When ENABLE_PROFILING is enabled, the llvm source base is built with profile
248253 # information to allow gprof to be used to get execution frequencies.
249254 #ENABLE_PROFILING = 1
312312 CXX.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer)
313313 C.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer)
314314 LD.Flags += $(OPTIMIZE_OPTION)
315 ifdef DEBUG_RUNTIME
315 ifdef DEBUG_SYMBOLS
316316 BuildMode := $(BuildMode)+Debug
317317 CXX.Flags += -g
318318 C.Flags += -g
380380 AC_SUBST(DEBUG_RUNTIME,[[DEBUG_RUNTIME=1]])
381381 fi
382382
383 dnl --enable-debug-symbols : should even optimized compiler libraries
384 dnl have debug symbols?
385 AC_ARG_ENABLE(debug-symbols,
386 AS_HELP_STRING(--enable-debug-symbols,[Build compiler with debug symbols (default is NO if optimization is on and YES if it's off)]),,enableval=no)
387 if test ${enableval} = "no" ; then
388 AC_SUBST(DEBUG_SYMBOLS,[[]])
389 else
390 AC_SUBST(DEBUG_SYMBOLS,[[DEBUG_SYMBOLS=1]])
391 fi
392
383393 dnl --enable-jit: check whether they want to enable the jit
384394 AC_ARG_ENABLE(jit,
385395 AS_HELP_STRING(--enable-jit,
836836 ENABLE_EXPENSIVE_CHECKS
837837 EXPENSIVE_CHECKS
838838 DEBUG_RUNTIME
839 DEBUG_SYMBOLS
839840 JIT
840841 TARGET_HAS_JIT
841842 ENABLE_DOXYGEN
15531554 is NO)
15541555 --enable-debug-runtime Build runtime libs with debug symbols (default is
15551556 NO)
1557 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1558 optimization is on and YES if it's off)
15561559 --enable-jit Enable Just In Time Compiling (default is YES)
15571560 --enable-doxygen Build doxygen documentation (default is NO)
15581561 --enable-threads Use threads if available (default is YES)
48814884
48824885 fi
48834886
4887 # Check whether --enable-debug-symbols was given.
4888 if test "${enable_debug_symbols+set}" = set; then
4889 enableval=$enable_debug_symbols;
4890 else
4891 enableval=no
4892 fi
4893
4894 if test ${enableval} = "no" ; then
4895 DEBUG_SYMBOLS=
4896
4897 else
4898 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4899
4900 fi
4901
48844902 # Check whether --enable-jit was given.
48854903 if test "${enable_jit+set}" = set; then
48864904 enableval=$enable_jit;
1097510993 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1097610994 lt_status=$lt_dlunknown
1097710995 cat > conftest.$ac_ext <
10978 #line 10979 "configure"
10996 #line 10997 "configure"
1097910997 #include "confdefs.h"
1098010998
1098110999 #if HAVE_DLFCN_H
1311913137 ;;
1312013138 *-*-irix6*)
1312113139 # Find out which ABI we are using.
13122 echo '#line 13123 "configure"' > conftest.$ac_ext
13140 echo '#line 13141 "configure"' > conftest.$ac_ext
1312313141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1312413142 (eval $ac_compile) 2>&5
1312513143 ac_status=$?
1483714855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1483814856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1483914857 -e 's:$: $lt_compiler_flag:'`
14840 (eval echo "\"\$as_me:14841: $lt_compile\"" >&5)
14858 (eval echo "\"\$as_me:14859: $lt_compile\"" >&5)
1484114859 (eval "$lt_compile" 2>conftest.err)
1484214860 ac_status=$?
1484314861 cat conftest.err >&5
14844 echo "$as_me:14845: \$? = $ac_status" >&5
14862 echo "$as_me:14863: \$? = $ac_status" >&5
1484514863 if (exit $ac_status) && test -s "$ac_outfile"; then
1484614864 # The compiler can only warn and ignore the option if not recognized
1484714865 # So say no if there are warnings other than the usual output.
1510515123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1510615124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1510715125 -e 's:$: $lt_compiler_flag:'`
15108 (eval echo "\"\$as_me:15109: $lt_compile\"" >&5)
15126 (eval echo "\"\$as_me:15127: $lt_compile\"" >&5)
1510915127 (eval "$lt_compile" 2>conftest.err)
1511015128 ac_status=$?
1511115129 cat conftest.err >&5
15112 echo "$as_me:15113: \$? = $ac_status" >&5
15130 echo "$as_me:15131: \$? = $ac_status" >&5
1511315131 if (exit $ac_status) && test -s "$ac_outfile"; then
1511415132 # The compiler can only warn and ignore the option if not recognized
1511515133 # So say no if there are warnings other than the usual output.
1520915227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1521015228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1521115229 -e 's:$: $lt_compiler_flag:'`
15212 (eval echo "\"\$as_me:15213: $lt_compile\"" >&5)
15230 (eval echo "\"\$as_me:15231: $lt_compile\"" >&5)
1521315231 (eval "$lt_compile" 2>out/conftest.err)
1521415232 ac_status=$?
1521515233 cat out/conftest.err >&5
15216 echo "$as_me:15217: \$? = $ac_status" >&5
15234 echo "$as_me:15235: \$? = $ac_status" >&5
1521715235 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1521815236 then
1521915237 # The compiler can only warn and ignore the option if not recognized
1766117679 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1766217680 lt_status=$lt_dlunknown
1766317681 cat > conftest.$ac_ext <
17664 #line 17665 "configure"
17682 #line 17683 "configure"
1766517683 #include "confdefs.h"
1766617684
1766717685 #if HAVE_DLFCN_H
1776117779 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1776217780 lt_status=$lt_dlunknown
1776317781 cat > conftest.$ac_ext <
17764 #line 17765 "configure"
17782 #line 17783 "configure"
1776517783 #include "confdefs.h"
1776617784
1776717785 #if HAVE_DLFCN_H
2012920147 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2013020148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2013120149 -e 's:$: $lt_compiler_flag:'`
20132 (eval echo "\"\$as_me:20133: $lt_compile\"" >&5)
20150 (eval echo "\"\$as_me:20151: $lt_compile\"" >&5)
2013320151 (eval "$lt_compile" 2>conftest.err)
2013420152 ac_status=$?
2013520153 cat conftest.err >&5
20136 echo "$as_me:20137: \$? = $ac_status" >&5
20154 echo "$as_me:20155: \$? = $ac_status" >&5
2013720155 if (exit $ac_status) && test -s "$ac_outfile"; then
2013820156 # The compiler can only warn and ignore the option if not recognized
2013920157 # So say no if there are warnings other than the usual output.
2023320251 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2023420252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2023520253 -e 's:$: $lt_compiler_flag:'`
20236 (eval echo "\"\$as_me:20237: $lt_compile\"" >&5)
20254 (eval echo "\"\$as_me:20255: $lt_compile\"" >&5)
2023720255 (eval "$lt_compile" 2>out/conftest.err)
2023820256 ac_status=$?
2023920257 cat out/conftest.err >&5
20240 echo "$as_me:20241: \$? = $ac_status" >&5
20258 echo "$as_me:20259: \$? = $ac_status" >&5
2024120259 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2024220260 then
2024320261 # The compiler can only warn and ignore the option if not recognized
2180321821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2180421822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2180521823 -e 's:$: $lt_compiler_flag:'`
21806 (eval echo "\"\$as_me:21807: $lt_compile\"" >&5)
21824 (eval echo "\"\$as_me:21825: $lt_compile\"" >&5)
2180721825 (eval "$lt_compile" 2>conftest.err)
2180821826 ac_status=$?
2180921827 cat conftest.err >&5
21810 echo "$as_me:21811: \$? = $ac_status" >&5
21828 echo "$as_me:21829: \$? = $ac_status" >&5
2181121829 if (exit $ac_status) && test -s "$ac_outfile"; then
2181221830 # The compiler can only warn and ignore the option if not recognized
2181321831 # So say no if there are warnings other than the usual output.
2190721925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2190821926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2190921927 -e 's:$: $lt_compiler_flag:'`
21910 (eval echo "\"\$as_me:21911: $lt_compile\"" >&5)
21928 (eval echo "\"\$as_me:21929: $lt_compile\"" >&5)
2191121929 (eval "$lt_compile" 2>out/conftest.err)
2191221930 ac_status=$?
2191321931 cat out/conftest.err >&5
21914 echo "$as_me:21915: \$? = $ac_status" >&5
21932 echo "$as_me:21933: \$? = $ac_status" >&5
2191521933 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2191621934 then
2191721935 # The compiler can only warn and ignore the option if not recognized
2414224160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2414324161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2414424162 -e 's:$: $lt_compiler_flag:'`
24145 (eval echo "\"\$as_me:24146: $lt_compile\"" >&5)
24163 (eval echo "\"\$as_me:24164: $lt_compile\"" >&5)
2414624164 (eval "$lt_compile" 2>conftest.err)
2414724165 ac_status=$?
2414824166 cat conftest.err >&5
24149 echo "$as_me:24150: \$? = $ac_status" >&5
24167 echo "$as_me:24168: \$? = $ac_status" >&5
2415024168 if (exit $ac_status) && test -s "$ac_outfile"; then
2415124169 # The compiler can only warn and ignore the option if not recognized
2415224170 # So say no if there are warnings other than the usual output.
2441024428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2441124429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2441224430 -e 's:$: $lt_compiler_flag:'`
24413 (eval echo "\"\$as_me:24414: $lt_compile\"" >&5)
24431 (eval echo "\"\$as_me:24432: $lt_compile\"" >&5)
2441424432 (eval "$lt_compile" 2>conftest.err)
2441524433 ac_status=$?
2441624434 cat conftest.err >&5
24417 echo "$as_me:24418: \$? = $ac_status" >&5
24435 echo "$as_me:24436: \$? = $ac_status" >&5
2441824436 if (exit $ac_status) && test -s "$ac_outfile"; then
2441924437 # The compiler can only warn and ignore the option if not recognized
2442024438 # So say no if there are warnings other than the usual output.
2451424532 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2451524533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
2451624534 -e 's:$: $lt_compiler_flag:'`
24517 (eval echo "\"\$as_me:24518: $lt_compile\"" >&5)
24535 (eval echo "\"\$as_me:24536: $lt_compile\"" >&5)
2451824536 (eval "$lt_compile" 2>out/conftest.err)
2451924537 ac_status=$?
2452024538 cat out/conftest.err >&5
24521 echo "$as_me:24522: \$? = $ac_status" >&5
24539 echo "$as_me:24540: \$? = $ac_status" >&5
2452224540 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2452324541 then
2452424542 # The compiler can only warn and ignore the option if not recognized
3609236110 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
3609336111 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
3609436112 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36113 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
3609536114 JIT!$JIT$ac_delim
3609636115 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
3609736116 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
3610736126 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
3610836127 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
3610936128 CXX!$CXX$ac_delim
36110 CXXFLAGS!$CXXFLAGS$ac_delim
3611136129 _ACEOF
3611236130
3611336131 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
3614936167 ac_delim='%!_!# '
3615036168 for ac_last_try in false false false false false :; do
3615136169 cat >conf$$subs.sed <<_ACEOF
36170 CXXFLAGS!$CXXFLAGS$ac_delim
3615236171 ac_ct_CXX!$ac_ct_CXX$ac_delim
3615336172 NM!$NM$ac_delim
3615436173 ifGNUmake!$ifGNUmake$ac_delim
3624236261 LTLIBOBJS!$LTLIBOBJS$ac_delim
3624336262 _ACEOF
3624436263
36245 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
36264 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
3624636265 break
3624736266 elif $ac_last_try; then
3624836267 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5