[dmd-internals] [D-Programming-Language/dmd] d9cccf: Build using implicit rules with pattern matching

GitHub noreply at github.com
Wed Apr 16 01:30:23 PDT 2014


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: d9cccf2ed86e4d15b73fb54d5765008deef33384
      https://github.com/D-Programming-Language/dmd/commit/d9cccf2ed86e4d15b73fb54d5765008deef33384
  Author: Anders Ro <anders.ronnbrant at gmail.com>
  Date:   2014-04-08 (Tue, 08 Apr 2014)

  Changed paths:
    M src/posix.mak

  Log Message:
  -----------
  Build using implicit rules with pattern matching

This change declares four implicit rules for building each of the set of
objects (DMD_OBJS, ROOT_OBJS, GLUE_OBJS and BACK_OBJS). It should make
it easier to add/change/control the compiler flags for the different set
of source files. Especially adding and changing warnings-flags being
used.

The difference against master (db2291f) on the object files only differs
(using md5sum) because of different content in 'verstr.h' which affects
'mars.c', and because 'strtold.c' is now compiled with flags and is
affected by optimization.


  Commit: d9e30d05a2f2de99f5c388197017d18993544634
      https://github.com/D-Programming-Language/dmd/commit/d9e30d05a2f2de99f5c388197017d18993544634
  Author: Anders Ro <anders.ronnbrant at gmail.com>
  Date:   2014-04-11 (Fri, 11 Apr 2014)

  Changed paths:
    M src/posix.mak

  Log Message:
  -----------
  Add set of warning flags

Initally disabled keeping the old warning flags. Defining
ENABLE_WARNINGS turns them on. Flags suggested by Nordlöw in forum
thread: "Recommendation: Compile DMD with More Warnings"


  Commit: 92163813699966934b85adbb77c1d3ff8e56022f
      https://github.com/D-Programming-Language/dmd/commit/92163813699966934b85adbb77c1d3ff8e56022f
  Author: Anders Ro <anders.ronnbrant at gmail.com>
  Date:   2014-04-11 (Fri, 11 Apr 2014)

  Changed paths:
    M src/posix.mak

  Log Message:
  -----------
  Clean up compiler flag handling

All source files have a common set of build flags and those should be
put in CFLAGS, for example warnings, optimization level, and possibly
profiling flags if required.

Introduces four specific flags for the different object file sets to
keep some diversity if necessary. (This could be removed if the small
differences are insignificant).

Introduces ENABLE_DEBUG (same as DEBUG) and ENABLE_PROFILING to turn on
debugging and profile flags. ENABLE_PROFILING turns on previously
commented PROFILE and COV variables. Content is the same.


  Commit: d82ee89e30c0c4aef250d6338f11eb91cd50268d
      https://github.com/D-Programming-Language/dmd/commit/d82ee89e30c0c4aef250d6338f11eb91cd50268d
  Author: Anders Ro <anders.ronnbrant at gmail.com>
  Date:   2014-04-11 (Fri, 11 Apr 2014)

  Changed paths:
    M src/posix.mak

  Log Message:
  -----------
  Alter implicit pattern rule to not require vpath to ROOT

Object async.o was DMD_OBJS, should have been in ROOT_OBJS.


  Commit: 878ec6cde708bffe3b5795d935fef30d684cd510
      https://github.com/D-Programming-Language/dmd/commit/878ec6cde708bffe3b5795d935fef30d684cd510
  Author: Anders Ro <anders.ronnbrant at gmail.com>
  Date:   2014-04-12 (Sat, 12 Apr 2014)

  Changed paths:
    M src/posix.mak

  Log Message:
  -----------
  Correct warning flags


  Commit: 2bb18ae8148ab95554bc6d3fa309872ee4e369a5
      https://github.com/D-Programming-Language/dmd/commit/2bb18ae8148ab95554bc6d3fa309872ee4e369a5
  Author: Martin Nowak <code at dawg.eu>
  Date:   2014-04-16 (Wed, 16 Apr 2014)

  Changed paths:
    M src/posix.mak

  Log Message:
  -----------
  Merge pull request #3440 from andron/implicit-build-rules

Build using implicit rules with pattern matching


Compare: https://github.com/D-Programming-Language/dmd/compare/be4eb97848ff...2bb18ae8148a


More information about the dmd-internals mailing list