Merge pull request #10641 from justxuewei/fix-build-type

runtime-rs: Ignore BUILD_TYPE if it is not release
This commit is contained in:
Fupan Li 2024-12-12 11:32:49 +08:00 committed by GitHub
commit 372346baed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -580,7 +580,7 @@ static-checks-build: $(GENERATED_FILES)
$(TARGET): $(GENERATED_FILES) $(TARGET_PATH)
$(TARGET_PATH): $(SOURCES) | show-summary
@RUSTFLAGS="$(EXTRA_RUSTFLAGS) --deny warnings" cargo build --target $(TRIPLE) --$(BUILD_TYPE) $(EXTRA_RUSTFEATURES)
@RUSTFLAGS="$(EXTRA_RUSTFLAGS) --deny warnings" cargo build --target $(TRIPLE) $(if $(findstring release,$(BUILD_TYPE)),--release) $(EXTRA_RUSTFEATURES)
$(GENERATED_FILES): %: %.in
@sed \