Fix nix build compilation error at Check Phase #1

Merged
sb10q merged 1 commits from linuswck/kirdy-firmware:fix_nix_build_compilation into master 2023-12-15 16:40:03 +08:00
Member

PR Description

This PR fixes the compilation error on nix build .

At Check Phase, cargo test -j 16 --release --target x86_64-unknown-linux-gnu --frozen -- --test-threads=16 is run.
The compilation errors are due to:

  • "panic_handler" is declared at test
  • "no_main" and "no_std" are declared at test
  • kirdy's firmware "main" fn is declared
# PR Description This PR fixes the compilation error on `nix build .` At Check Phase, `cargo test -j 16 --release --target x86_64-unknown-linux-gnu --frozen -- --test-threads=16` is run. The compilation errors are due to: - "panic_handler" is declared at test - "no_main" and "no_std" are declared at test - kirdy's firmware "main" fn is declared
linuswck added 1 commit 2023-12-15 14:40:44 +08:00
- "panic_handler" should not be declared during test
- "main" and "std" are needed during test
linuswck changed target branch from rtic to master 2023-12-15 14:41:11 +08:00
sb10q merged commit f2b419f8d0 into master 2023-12-15 16:40:03 +08:00
Owner

Just commit and push directly. This repos is only for testing and won't be the final firmware.

Just commit and push directly. This repos is only for testing and won't be the final firmware.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/kirdy#1
No description provided.