|
83 | 83 |
|
84 | 84 | $(info $$DEBUG_LEVEL is ${DEBUG_LEVEL})
|
85 | 85 |
|
86 |
| -# Lite build flag. |
87 |
| -LITE ?= 0 |
88 |
| -ifeq ($(LITE), 0) |
89 |
| -ifneq ($(filter -DROCKSDB_LITE,$(OPT)),) |
90 |
| - # Be backward compatible and support older format where OPT=-DROCKSDB_LITE is |
91 |
| - # specified instead of LITE=1 on the command line. |
92 |
| - LITE=1 |
93 |
| -endif |
94 |
| -else ifeq ($(LITE), 1) |
95 |
| -ifeq ($(filter -DROCKSDB_LITE,$(OPT)),) |
96 |
| - OPT += -DROCKSDB_LITE |
97 |
| -endif |
98 |
| -endif |
99 |
| - |
100 | 86 | # Figure out optimize level.
|
101 | 87 | ifneq ($(DEBUG_LEVEL), 2)
|
102 |
| -ifeq ($(LITE), 0) |
103 | 88 | OPTIMIZE_LEVEL ?= -O2
|
104 |
| -else |
105 |
| - OPTIMIZE_LEVEL ?= -Os |
106 |
| -endif |
107 | 89 | endif
|
108 | 90 | # `OPTIMIZE_LEVEL` is empty when the user does not set it and `DEBUG_LEVEL=2`.
|
109 | 91 | # In that case, the compiler default (`-O0` for gcc and clang) will be used.
|
@@ -337,13 +319,6 @@ endif
|
337 | 319 | ifeq ($(PLATFORM), OS_SOLARIS)
|
338 | 320 | PLATFORM_CXXFLAGS += -D _GLIBCXX_USE_C99
|
339 | 321 | endif
|
340 |
| -ifneq ($(filter -DROCKSDB_LITE,$(OPT)),) |
341 |
| - # found |
342 |
| - CFLAGS += -fno-exceptions |
343 |
| - CXXFLAGS += -fno-exceptions |
344 |
| - # LUA is not supported under ROCKSDB_LITE |
345 |
| - LUA_PATH = |
346 |
| -endif |
347 | 322 |
|
348 | 323 | ifeq ($(LIB_MODE),shared)
|
349 | 324 | # So that binaries are executable from build location, in addition to install location
|
@@ -1082,13 +1057,11 @@ check: all
|
1082 | 1057 | rm -rf $(TEST_TMPDIR)
|
1083 | 1058 | ifneq ($(PLATFORM), OS_AIX)
|
1084 | 1059 | $(PYTHON) tools/check_all_python.py
|
1085 |
| -ifeq ($(filter -DROCKSDB_LITE,$(OPT)),) |
1086 | 1060 | ifndef ASSERT_STATUS_CHECKED # not yet working with these tests
|
1087 | 1061 | $(PYTHON) tools/ldb_test.py
|
1088 | 1062 | sh tools/rocksdb_dump_test.sh
|
1089 | 1063 | endif
|
1090 | 1064 | endif
|
1091 |
| -endif |
1092 | 1065 | ifndef SKIP_FORMAT_BUCK_CHECKS
|
1093 | 1066 | $(MAKE) check-format
|
1094 | 1067 | $(MAKE) check-buck-targets
|
@@ -2489,18 +2462,6 @@ build_size:
|
2489 | 2462 | $(REPORT_BUILD_STATISTIC) rocksdb.build_size.shared_lib $$(stat --printf="%s" `readlink -f librocksdb.so`)
|
2490 | 2463 | strip `readlink -f librocksdb.so`
|
2491 | 2464 | $(REPORT_BUILD_STATISTIC) rocksdb.build_size.shared_lib_stripped $$(stat --printf="%s" `readlink -f librocksdb.so`)
|
2492 |
| - # === lite build, static === |
2493 |
| - $(MAKE) clean |
2494 |
| - $(MAKE) LITE=1 static_lib |
2495 |
| - $(REPORT_BUILD_STATISTIC) rocksdb.build_size.static_lib_lite $$(stat --printf="%s" librocksdb.a) |
2496 |
| - strip librocksdb.a |
2497 |
| - $(REPORT_BUILD_STATISTIC) rocksdb.build_size.static_lib_lite_stripped $$(stat --printf="%s" librocksdb.a) |
2498 |
| - # === lite build, shared === |
2499 |
| - $(MAKE) clean |
2500 |
| - $(MAKE) LITE=1 shared_lib |
2501 |
| - $(REPORT_BUILD_STATISTIC) rocksdb.build_size.shared_lib_lite $$(stat --printf="%s" `readlink -f librocksdb.so`) |
2502 |
| - strip `readlink -f librocksdb.so` |
2503 |
| - $(REPORT_BUILD_STATISTIC) rocksdb.build_size.shared_lib_lite_stripped $$(stat --printf="%s" `readlink -f librocksdb.so`) |
2504 | 2465 |
|
2505 | 2466 | # ---------------------------------------------------------------------------
|
2506 | 2467 | # Platform-specific compilation
|
|
0 commit comments