Makefile: do not gen error code before build
@@ -126,7 +126,7 @@ dev: format clippy
@env FAIL_POINT=1 make test
build: export TIKV_PROFILE=debug
-build: error-code
+build:
cargo build --no-default-features --features "${ENABLE_FEATURES}"
## Release builds (optimized dev builds)
@@ -140,7 +140,7 @@ build: error-code
# sse2-level instruction set), but with sse4.2 and the PCLMUL instruction
# enabled (the "sse" option)
release: export TIKV_PROFILE=release
-release: error-code
+release:
cargo build --release --no-default-features --features "${ENABLE_FEATURES}"
# An optimized build that builds an "unportable" RocksDB, which means it is
@@ -178,7 +178,7 @@ endif
# Build with release flag as if it were for distribution, but without
# additional sanity checks and file movement.
build_dist_release: export TIKV_PROFILE=dist_release
-build_dist_release: error-code
+build_dist_release:
make x-build-dist
ifeq ($(shell uname),Linux) # Macs don't have objcopy
# Reduce binary size by compressing binaries.
