Skip to content

Commit

Permalink
Merge pull request #1444 from microsoft/ab-rustflags-overridable
Browse files Browse the repository at this point in the history
[demikernel] Enhancement: make RUSTFLAGS overridable
  • Loading branch information
anandbonde authored Oct 20, 2024
2 parents e9591a1 + 7775579 commit dafa989
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions linux.mk
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ export INPUT ?= $(CURDIR)/network_simulator/input
# Rust
export CARGO ?= $(shell which cargo || echo "$(HOME)/.cargo/bin/cargo" )
export CARGO_FLAGS += --profile $(BUILD)

export RUSTFLAGS += -D warnings
export RUSTFLAGS ?= -D warnings

# C
export CFLAGS := -I $(INCDIR)
Expand Down
4 changes: 3 additions & 1 deletion windows.mk
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ CARGO = $(USERPROFILE)\.cargo\bin\cargo.exe
!endif
CARGO_FLAGS = $(CARGO_FLAGS) --profile $(BUILD)

RUSTFLAGS = $(RUSTFLAGS) -D warnings
!ifndef RUSTFLAGS
RUSTFLAGS = -D warnings
!endif

#=======================================================================================================================
# Libraries
Expand Down

0 comments on commit dafa989

Please sign in to comment.