diff options
author | Tristan Gingold <tgingold@free.fr> | 2017-05-20 05:18:23 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2017-05-20 05:18:23 +0200 |
commit | 09a2c9c2e20c4cfbbde8748d3c00402ff70d92c4 (patch) | |
tree | 85e115363d61dc1bd131062da0fdde16985275a5 | |
parent | 7302cdd4bd7329a1e0999cab2e53954a5129d280 (diff) | |
download | ghdl-09a2c9c2e20c4cfbbde8748d3c00402ff70d92c4.tar.gz ghdl-09a2c9c2e20c4cfbbde8748d3c00402ff70d92c4.tar.bz2 ghdl-09a2c9c2e20c4cfbbde8748d3c00402ff70d92c4.zip |
configure: add --disable-werror
For #350
-rw-r--r-- | Makefile.in | 3 | ||||
-rwxr-xr-x | configure | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index 5cc0b8008..4cef9600e 100644 --- a/Makefile.in +++ b/Makefile.in @@ -34,6 +34,7 @@ LDFLAGS=@LDFLAGS@ LIBBACKTRACE=@backtrace_lib@ llvm_be=@llvm_be@ build_mode=@build_mode@ +enable_werror=@enable_werror@ INSTALL_PROGRAM=install -m 755 INSTALL_DATA=install -m 644 @@ -78,7 +79,9 @@ WARN_CFLAGS=-Wall GNAT_BARGS=-bargs -E # Warnings as errors. Comment this line if a warning looks not valid. +ifeq "$(enable_werror)" "true" GNATFLAGS+=-gnatwe +endif target=$(build) #target=i686-pc-linux-gnu @@ -18,6 +18,7 @@ backtrace_lib= llvm_be=llvm build= build_mode= +enable_werror=true EXEEXT= SOEXT=.so PIC_FLAGS=-fPIC @@ -25,7 +26,7 @@ PIC_FLAGS=-fPIC show_help=no progname=$0 -subst_vars="CC CXX GNATMAKE CFLAGS LDFLAGS build srcdir abs_srcdir prefix backend libdirsuffix libdirreverse gcc_src_dir llvm_config llvm_be backtrace_lib build_mode EXEEXT SOEXT PIC_FLAGS default_pie" +subst_vars="CC CXX GNATMAKE CFLAGS LDFLAGS build srcdir abs_srcdir prefix backend libdirsuffix libdirreverse gcc_src_dir llvm_config llvm_be backtrace_lib build_mode EXEEXT SOEXT PIC_FLAGS default_pie enable_werror" # Find srcdir srcdir=`dirname $progname` @@ -70,6 +71,8 @@ for opt do --with-llvm-config) llvm_config="llvm-config"; backend=llvm;; --with-llvm-config=*) llvm_config="$optarg"; backend=llvm;; --with-backtrace-lib=*) backtrace_lib="$optarg";; + --enable-werror) enable_werror=true;; + --disable-werror) enable_werror=false;; --enable-coverage) build_mode="coverage";; -h|-help|--help) show_help=yes;; *) echo "$0: unknown option $opt; try $0 --help" @@ -90,6 +93,7 @@ Options [defaults in brackets]: --with-llvm-config=PATH use llvm from PATH (needs llvm 3.5 - 3.9) --with-backtrace-lib=LIB.a link with libbacktrace LIB.a to display a backtrace on errors (only for llvm). + --disable-werror warnings don't stop build EOF exit 0 fi |