diff options
author | Tristan Gingold <gingold@adacore.com> | 2015-11-22 19:02:05 +0100 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2015-11-22 19:02:05 +0100 |
commit | 27a4852201a41e7d6f8098cc05b7b0949ebc6af4 (patch) | |
tree | 91e6effe2be75fedb2e39e2eb374975c5666f206 /configure | |
parent | 92b0b82ea32982b94eb8bf19a0b498d92053fffe (diff) | |
download | ghdl-27a4852201a41e7d6f8098cc05b7b0949ebc6af4.tar.gz ghdl-27a4852201a41e7d6f8098cc05b7b0949ebc6af4.tar.bz2 ghdl-27a4852201a41e7d6f8098cc05b7b0949ebc6af4.zip |
backtrace: add support for windows and for llvm (via libbacktrace).
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -14,12 +14,13 @@ libdirreverse=../.. gcc_src_dir= gcc_version=unknown llvm_prefix= +backtrace_lib= build= show_help=no progname=$0 -subst_vars="CC GNATMAKE CFLAGS LDFLAGS build srcdir prefix backend libdirsuffix libdirreverse gcc_src_dir llvm_prefix" +subst_vars="CC GNATMAKE CFLAGS LDFLAGS build srcdir prefix backend libdirsuffix libdirreverse gcc_src_dir llvm_prefix backtrace_lib" # Find srcdir srcdir=`dirname $progname` @@ -68,6 +69,7 @@ for opt do --srcdir=*) srcdir="$optarg";; --with-gcc=*) gcc_src_dir="$optarg"; backend=gcc;; --with-llvm=*) llvm_prefix="$optarg"; backend=llvm;; + --with-backtrace-lib=*) backtrace_lib="$optarg";; -h|-help|--help) show_help=yes;; *) echo "$0: unknown option $opt; try $0 --help" exit 1 @@ -85,6 +87,9 @@ Options [defaults in brackets]: --srcdir=SRCDIR source code path [$srcdir] --with-gcc=DIR use gcc backend from DIR (needs gcc $gcc_version) --with-llvm=DIR use llvm installed in DIR (needs llvm $llvm_version) + --with-backtrace-lib=LIB.a + link with libbacktrace LIB.a to display a backtrace on + errors (only for llvm). EOF exit 0 fi @@ -115,6 +120,10 @@ if test $backend = mcode; then echo "WARNING: GHDL for mcode is supported only on x86 (32 bits)" echo "continuing, but build failure expected (See the README)" fi + if test "x$backtrace_lib" != x ; then + echo "WARNING: --with-backtrace-lib= ignored with mcode" + backtrace_lib= + fi fi # For gcc backend, check version @@ -144,7 +153,7 @@ if test $backend = llvm; then echo "Need llvm version $llvm_version" exit 1 fi - # For llvm, the c++ compiler isused for linking so that the standard c++ + # For llvm, the c++ compiler is used for linking so that the standard c++ # library is included. However, the linker needs the no_compact_unwind # flag because code generated by gcc is not compatible with compact unwind. case "$build" in |