Skip to content
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

Add support for scripting #161

Merged
merged 5 commits into from
Sep 22, 2024
Merged

Add support for scripting #161

merged 5 commits into from
Sep 22, 2024

Conversation

WorksButNotTested
Copy link
Contributor

No description provided.

@@ -0,0 +1,3 @@
fn main() {
println!("cargo:rustc-link-arg=-rdynamic");
Copy link
Contributor

Choose a reason for hiding this comment

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

can this not be specified in the Cargo.toml?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure. I've not seen that done before. Happy with it to be changed if that's preferable.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure either. If it can be done without a build.rs, better to do so.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure. The only other way I've seen linker flags set is with config.toml. But that applies to all crates in the workspace. It is intended to allow platform rather than crate specific configuration I believe.

@s1341 s1341 merged commit 2c0f211 into frida:main Sep 22, 2024
15 checks passed
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