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

feat: add method to set no_default_c/cxx_flags #219

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Chiichen
Copy link

@Chiichen Chiichen commented Sep 6, 2024

Added a set of methods to implement something similar to no_default_flags in the cc crate. Issue here #198

@Chiichen Chiichen changed the title feat: add method to set no_default_c/cxx_flags in cc feat: add method to set no_default_c/cxx_flags Sep 6, 2024
@Chiichen
Copy link
Author

Chiichen commented Sep 6, 2024

Corresponding bad case issue : Chiichen/libvnc-rs#1
success case github action : https://github.com/Chiichen/libvnc-rs/actions/runs/10741905760

@@ -420,6 +424,18 @@ impl Config {
self
}

/// Disables the generation of default compiler cxx flags. The default compiler flags may cause conflicts in some cross compiling scenarios.

Choose a reason for hiding this comment

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

You've mixed up the docstrings.

Anyways, there must be a cleaner way without the duplication. What if the same applies for other language targets down the line (Fortran, ASM)

Copy link
Author

Choose a reason for hiding this comment

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

What's the meaning of cleaner way without the duplication. I think it's necessary to clear the default flags by languages instead of simply cleaning them for all the language targets

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