mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-21 08:26:35 +00:00
fix(backtrace):Use more reasonable compile options (#1056)
* fix(backtrace):Use more reasonable compile options * 调整代码,同时解决rust analyzer未能提示warning的问题 --------- Co-authored-by: longjin <longjin@DragonOS.org>
This commit is contained in:
@ -33,13 +33,7 @@ endif
|
||||
|
||||
.PHONY: check
|
||||
check: ECHO
|
||||
# @echo "Checking kernel... ARCH=$(ARCH)"
|
||||
# @exit 1
|
||||
ifeq ($(ARCH), x86_64)
|
||||
RUSTFLAGS="$(RUSTFLAGS)" cargo +nightly-2024-11-05 check --workspace $(CARGO_ZBUILD) --message-format=json --target ./src/$(TARGET_JSON)
|
||||
else ifeq ($(ARCH), riscv64)
|
||||
RUSTFLAGS="$(RUSTFLAGS)" cargo +nightly-2024-11-05 check --workspace $(CARGO_ZBUILD) --message-format=json --target ./src/$(TARGET_JSON)
|
||||
endif
|
||||
$(MAKE) -C src check ARCH=$(ARCH)
|
||||
|
||||
test:
|
||||
# 测试内核库
|
||||
|
Reference in New Issue
Block a user