Skip to content

Conversation

@zhanghe-vivo
Copy link
Contributor

No description provided.

@zhanghe-vivo
Copy link
Contributor Author

build_prs #292

@github-actions
Copy link

@github-actions
Copy link

✅ All jobs completed successfully, see https://github.com/vivoblueos/kernel/actions/runs/21052449942.

Copy link
Contributor

@lawkai-vivo lawkai-vivo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Semihosting should not enabled when we're not testing.

#[cfg(not(feature = "std"))]
#[panic_handler]
fn oops(info: &core::panic::PanicInfo) -> ! {
#[cfg(test)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try using #[cfg(debug)] at present.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if not semihosting, what crate/method rsrt could use now? just need an print, #[cfg(debug)] not work

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should work under debug mode.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should work under debug mode.

Ok, my fault. The cfg has been mistakenly removed. Please update https://github.com/vivoblueos/build/blob/3939793f48f6b39c95434c0bc73d4cf405f02e10/config/BUILD.gn#L20 by adding --cfg ${build_type}.

@zhanghe-vivo
Copy link
Contributor Author

build_prs #292 vivoblueos/build#51

@github-actions
Copy link

@github-actions
Copy link

❌ Job failed. Failed jobs: build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/21061876528.

@zhanghe-vivo
Copy link
Contributor Author

build_prs #292 vivoblueos/build#51

@github-actions
Copy link

@github-actions
Copy link

❌ Job failed. Failed jobs: build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/21062574404.

@zhanghe-vivo
Copy link
Contributor Author

build_prs #292 vivoblueos/build#51

@github-actions
Copy link

@github-actions
Copy link

✅ All jobs completed successfully, see https://github.com/vivoblueos/kernel/actions/runs/21170691643.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants