diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2020-03-29 23:54:01 +0200 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2020-04-08 09:08:16 +0200 |
commit | 38c3017f257484a6739e2fba821d95794f7f175c (patch) | |
tree | 0533df94a36e00c17f59d19a51782eeb690aae35 /libphobos/src | |
parent | 845d451e1f73d8a9a84382c3c6d4fca9c8220403 (diff) | |
download | gcc-38c3017f257484a6739e2fba821d95794f7f175c.zip gcc-38c3017f257484a6739e2fba821d95794f7f175c.tar.gz gcc-38c3017f257484a6739e2fba821d95794f7f175c.tar.bz2 |
libphobos: Always build with warning flags enabled
This moves WARN_DFLAGS from GDCFLAGS to AM_DFLAGS so it is always
included in the build and testsuite of libphobos. Currently, this
doesn't happen as GDCFLAGS is overriden by it being set at the
top-level.
libphobos/ChangeLog:
* Makefile.in: Regenerate.
* configure: Regenerate.
* configure.ac: Substite WARN_DFLAGS independently of GDCFLAGS.
* libdruntime/Makefile.am: Add WARN_DFLAGS to AM_DFLAGS.
* libdruntime/Makefile.in: Regenerate.
* src/Makefile.am: Add WARN_DFLAGS to AM_DFLAGS.
* src/Makefile.in: Regenerate.
* testsuite/Makefile.in: Regenerate.
* testsuite/testsuite_flags.in: Add WARN_DFLAGS to --gdcflags.
Diffstat (limited to 'libphobos/src')
-rw-r--r-- | libphobos/src/Makefile.am | 4 | ||||
-rw-r--r-- | libphobos/src/Makefile.in | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/libphobos/src/Makefile.am b/libphobos/src/Makefile.am index 764e225..5c17538 100644 --- a/libphobos/src/Makefile.am +++ b/libphobos/src/Makefile.am @@ -23,7 +23,9 @@ D_EXTRA_DFLAGS=-nostdinc -I $(srcdir) \ -I $(top_srcdir)/libdruntime -I ../libdruntime -I . # D flags for compilation -AM_DFLAGS=$(phobos_compiler_pic_flag) +AM_DFLAGS= \ + $(phobos_compiler_pic_flag) \ + $(WARN_DFLAGS) # Install all D files ALL_PHOBOS_INSTALL_DSOURCES = $(PHOBOS_DSOURCES) diff --git a/libphobos/src/Makefile.in b/libphobos/src/Makefile.in index c30b66d..e58dafb 100644 --- a/libphobos/src/Makefile.in +++ b/libphobos/src/Makefile.in @@ -343,6 +343,7 @@ SHELL = @SHELL@ SPEC_PHOBOS_DEPS = @SPEC_PHOBOS_DEPS@ STRIP = @STRIP@ VERSION = @VERSION@ +WARN_DFLAGS = @WARN_DFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ @@ -437,7 +438,10 @@ D_EXTRA_DFLAGS = -nostdinc -I $(srcdir) \ # D flags for compilation -AM_DFLAGS = $(phobos_compiler_pic_flag) +AM_DFLAGS = \ + $(phobos_compiler_pic_flag) \ + $(WARN_DFLAGS) + # Install all D files ALL_PHOBOS_INSTALL_DSOURCES = $(PHOBOS_DSOURCES) |