diff options
author | Igor Sugak <sugak@dev2112.prn1.facebook.com> | 2015-03-18 19:12:23 -0700 |
---|---|---|
committer | Igor Sugak <sugak@dev2112.prn1.facebook.com> | 2015-03-18 19:12:23 -0700 |
commit | 67d995808ab6fa5987341b6a20fddb1fe75e06c5 (patch) | |
tree | 745c5cf04ca9b94d6f75740d215f6f31f599270d /Makefile | |
parent | 52e0f3353f6900679040d5fa3c0cb058fbeda0df (diff) |
rocksdb: fix make unity
Summary:
changed make unity target to use $LIB_SOURCES as a source of library source code. In the old way (using find) table/mock_table.h was added to a list of library objects and this was a course of `make unity` break.
`build_tools/unity` contains some redundant code, I deleted it and moved the functionality in the Makefile.
Test Plan:
Make sure unity completes with no errors.
```lang=bash
% make unity
```
Reviewers: sdong, rven, igor, meyering
Reviewed By: igor, meyering
Subscribers: dhruba, leveldb
Differential Revision: https://reviews.facebook.net/D35385
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -378,7 +378,13 @@ analyze: clean $(MAKE) dbg unity.cc: - $(shell (export ROCKSDB_ROOT="$(CURDIR)"; "$(CURDIR)/build_tools/unity" "$(CURDIR)/unity.cc")) + rm -f $@ $@-t + for source_file in $(LIB_SOURCES); do \ + echo "#include <$$source_file>" >> $@-t; \ + done + echo 'int main(int argc, char** argv){ return 0; }' >> $@-t + chmod a=r $@-t + mv $@-t $@ unity: unity.o $(AM_LINK) |