Skip to content

Commit 6d1dcfb

Browse files
fitzthumXynnn007
authored andcommitted
cli: fixup Makefile
Due to some quirks in variable precedence, our logic to set the Rust features didn't do anything. If CLI_FEATURES was set from the command line, that value would be instead of anything set in the Makefile. To fix this, and to make things a little more clear, introduce a new variable RUST_CLI_FEATURES. Note that previously we were appending "all-attesters" to the CLI_FEATURES. With this approach we do not do that. Signed-off-by: Tobin Feldman-Fitzthum <tfeldmanfitz@nvidia.com>
1 parent 6bc500c commit 6d1dcfb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

kbs/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ ifeq ($(VAULT), true)
6161
endif
6262

6363
ifeq ($(CLI_FEATURES),sample_only)
64-
CLI_FEATURES = "," # this is a dummy feature to satisfy the cargo build command
64+
RUST_CLI_FEATURES = "," # this is a dummy feature to satisfy the cargo build command
6565
else ifdef ATTESTER
66-
CLI_FEATURES = "$(ATTESTER)"
66+
RUST_CLI_FEATURES = "$(ATTESTER)"
6767
else
68-
CLI_FEATURES += "all-attesters"
68+
RUST_CLI_FEATURES = "all-attesters"
6969
endif
7070

7171
ifneq ($(TEST_FEATURES),)
@@ -90,7 +90,7 @@ passport-resource-kbs:
9090

9191
.PHONY: cli
9292
cli:
93-
$(CARGO_ENV) cargo build -p kbs-client --locked --release --no-default-features --features $(CLI_FEATURES) $(TARGET_FLAG)
93+
$(CARGO_ENV) cargo build -p kbs-client --locked --release --no-default-features --features $(RUST_CLI_FEATURES) $(TARGET_FLAG)
9494

9595
.PHONY: cli-static-linux
9696
cli-static-linux:

0 commit comments

Comments
 (0)