1. 19 2月, 2015 4 次提交
    • J
      build: factor out AM_LINK command (trivial) · b4b8c25a
      Jim Meyering 提交于
      Summary:
        Many link commands were identical.
        Factor that out into a variable, AM_LINK, and use
        it in place of all of those open-coded commands.
      
      Test Plan: run "make check"
      
      Reviewers: ljin, igor, sdong
      
      Reviewed By: igor
      
      Subscribers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D33585
      b4b8c25a
    • J
      build: make "make" output readable by default · dc885c6e
      Jim Meyering 提交于
      Summary:
      With this change, make now prints a summary line for each
      compiler and linker invocation, e.g.,:
      
        CC       db/builder.o
        CC       db/c.o
        CC       db/column_family.o
      
      To see full commands, insert "V=1" into your make command.
      E.g., run "make V=1 all" if you want it to print each command
      in its full glory.
      
      $^ is GNU make's abbreviation for the prerequisites of the current target.
      These AM_V_... variables expand to some very short string like "CC" or
      "LD", by default, so that the output of "make" is readable.  If/when you
      want more details, just build with "make V=1 ...", and make will print
      each full command as it is executed.  If you prefer to see the noise
      all the time, and only want to optionally see the abbreviated output,
      set AM_DEFAULT_VERBOSITY=1 in your environment, and then build with
      V=0 to see the abbreviated command indicators.
      
      Test Plan:
      invoke make a few different ways and observe:
        make clean; make       # abbreviated
        make clean; make V=0   # also abbreviated
        make clean; make V=1   # full detail
      
      Reviewers: sdong, ljin, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D33579
      dc885c6e
    • J
      build: fix Makefile inconsistencies (trivial) · a37b46ae
      Jim Meyering 提交于
      Summary:
      This is in preparation for some factorization.
      * Makefile (deletefile_test): Add $(COVERAGEFLAGS) to link command.
      (options_test): Remove explicit (redundant) dependency on
      options_helper.o: that is already a dependent, via $(LIBOBJECTS)
      
      Test Plan: run make
      
      Reviewers: sdong, ljin, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D33573
      a37b46ae
    • J
      build: remove unused rules: rocksdb_shell, DBClientProxy_test · 55277c32
      Jim Meyering 提交于
      Summary:
      There were Makefile rules to build those two targets,
      but neither rule has worked for a long time, due to missing
      dependent source files.  Remove those rules.
      
      Test Plan: run "make"
      
      Reviewers: sdong, ljin, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D33567
      55277c32
  2. 18 2月, 2015 5 次提交
  3. 14 2月, 2015 3 次提交
    • J
      build: fix unportable Makefile syntax · b9a0213c
      Jim Meyering 提交于
      Summary:
      * Makefile (dummy): Prefix this statement with "dummy := ",
      so that it no longer triggers a syntax error from GNU make 3.80
      and earlier.  Reported by nielsl in
      https://github.com/facebook/rocksdb/issues/509
      
      Test Plan: run make
      
      Reviewers: sdong, ljin, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D33429
      b9a0213c
    • I
      rocksdb: Fix scan-build 'Called C++ object pointer is null' and 'Dereference of null pointer' bugs · 4e4b8578
      Igor Sugak 提交于
      Summary:
      In the existing implementation of `ASSERT*`, test termination happens in `~Tester`, which is called when instance of `Tester` goes out of scope. This is the cause of many scan-build bugs.
      
      This diff changes `ASSERT*` to terminate the test immediately. Also added one suppression in `util/signal_test.cc`
      
      scan-build bugs
      before: http://home.fburl.com/~sugak/latest/index.html
      after: http://home.fburl.com/~sugak/latest2/index.html
      
      Test Plan:
      Modify some test to fail an assertion and make sure that `ASSERT*` terminated the test.
      
      Run `make analyze` and make sure no 'Called C++ object pointer is null' and 'Dereference of null pointer' bugs reported.
      
      Run tests and make sure no failing tests:
      ```lang=bash
      % make check
      % USE_CLANG=1 make check
      ```
      
      Reviewers: meyering, lgalanis, sdong, rven, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba, leveldb
      
      Differential Revision: https://reviews.facebook.net/D33381
      4e4b8578
    • J
      build: remove unportable use of sed in favor of $(CXX)'s -MT · b3fd1622
      Jim Meyering 提交于
      Summary:
      The code being removed would invoke sed differently to work
      around a portability difference in how sed -i works (different
      on MacOS).  Yet performing a host-type-based ifdef fails when
      the tools installed do not match.  That sed use was solely to
      post-process the .d file.  Instead, generate the desired output
      directly, by using the compiler's -MT<FILE> option.
      * Makefile (%.d: %.cc): With the prior use of Makefile-ifdef'd
      sed, when building on MacOS with gnu sed, every run of this rule
      would fail with a sed usage error.  Also list each .d file as a
      dependent.
      
      Test Plan:
        Ensure that a selected .d file is the same as before both with
        g++ and with clang++.  However, note that the new .d files each
        contain a new reference to the .d file itself.
      
      Reviewers: sdong, ljin, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba
      
      Differential Revision: https://reviews.facebook.net/D33369
      b3fd1622
  4. 13 2月, 2015 3 次提交
  5. 12 2月, 2015 3 次提交
  6. 11 2月, 2015 5 次提交
  7. 10 2月, 2015 10 次提交
  8. 09 2月, 2015 3 次提交
  9. 07 2月, 2015 4 次提交