-
Notifications
You must be signed in to change notification settings - Fork 79
[native_toolchain_c] Default handling for PIC/PIE compiler flags #121
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
Conversation
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.
(I know it's still a draft.)
But LGTM.
Please add some more documentation to the PR description that refers to the CC crate using this as default.
Please update version number (if necessary) and add a changelog entry. |
pkgs/native_toolchain_c/CHANGELOG.md
Outdated
@@ -3,6 +3,8 @@ | |||
- Added `defines` for specifying custom defines. | |||
- Added `buildModeDefine` to toggle define for current build mode. | |||
- Added `ndebugDefine` to toggle define of `NDEBUG` for non-debug builds. | |||
- Generate position independent code for libraries by default and add |
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.
Auto-publishing expects us to publish the first commit with a non -wip
suffix. So this has to go in 0.2.2.
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.
Ah, sorry, when I looked this morning 0.2.1 was not published yet.
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.
I've updated the changelog, but left the version, since 0.2.1 has not been published yet.
/// } | ||
/// } | ||
/// ``` | ||
String testSuffix(List<Object> tags) => switch (tags) { |
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!
Thanks @blaugold! 🥇 |
cc @devoncarew I think we used to get code-coverage and publisher comments on PRs, but they are not on this PR. Did we change some settings? (The publish comment that has a clickable draft-release link is quite handy!) |
The rust
cc
crate provides defaults for passing-fPIC
to the compiler that simplify configuration for most use cases. This PR adapts this behavior forCBuilder
.Closes #119