-
Notifications
You must be signed in to change notification settings - Fork 450
Test that __rust_probestack
can be linked
#74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -5,6 +5,7 @@ obj-$(CONFIG_RUST) += core.o compiler_builtins.o alloc.o kernel.o | |||||||||||||||
extra-$(CONFIG_RUST) += bindings_generated.rs libmodule.so | ||||||||||||||||
extra-$(CONFIG_RUST) += exports_core_generated.h exports_alloc_generated.h | ||||||||||||||||
extra-$(CONFIG_RUST) += exports_kernel_generated.h | ||||||||||||||||
extra-$(CONFIG_RUST) += exports_compiler_builtins_generated.h | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here
Suggested change
|
||||||||||||||||
|
||||||||||||||||
ifdef CONFIG_CC_IS_CLANG | ||||||||||||||||
bindgen_c_flags = $(c_flags) | ||||||||||||||||
|
@@ -62,6 +63,10 @@ $(objtree)/rust/exports_kernel_generated.h: exports_target_type := _RUST_GPL | |||||||||||||||
$(objtree)/rust/exports_kernel_generated.h: $(objtree)/rust/kernel.o FORCE | ||||||||||||||||
$(call if_changed,exports) | ||||||||||||||||
|
||||||||||||||||
$(objtree)/rust/exports_compiler_builtins_generated.h: exports_target_type := _RUST | ||||||||||||||||
$(objtree)/rust/exports_compiler_builtins_generated.h: $(objtree)/rust/compiler_builtins.o FORCE | ||||||||||||||||
$(call if_changed,exports) | ||||||||||||||||
|
||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you please move these in-between |
||||||||||||||||
quiet_cmd_rustc_procmacro = RUSTC P $@ | ||||||||||||||||
cmd_rustc_procmacro = \ | ||||||||||||||||
$(RUSTC) $(rustc_flags) --edition 2018 --extern proc_macro \ | ||||||||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ | |
#include "exports_core_generated.h" | ||
#include "exports_alloc_generated.h" | ||
#include "exports_kernel_generated.h" | ||
#include "exports_compiler_builtins_generated.h" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same please. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! The 2/3/4 examples are intended to be copy-pastes of the first one (for the CI). Can you please put this into all of them?
In the future we will probably move these runtime tests somewhere else, but for now it is good to have them here. +1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done