-
Notifications
You must be signed in to change notification settings - Fork 38
fix: add .def files to textual_hdrs of clang targets #1600
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
base: main
Are you sure you want to change the base?
Conversation
838770a
to
21cfd24
Compare
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 would prefer that we have a test and/or example that exercises this functionality. In an example, could we patch the KSCrash Package.swift
to link the zlib library?
Makes sense, gonna do that later today. |
21cfd24
to
ea2f268
Compare
@cgrindel what should I do to make CI green? Looks like I am missing something obvious |
It looks like there was a |
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.
Overall, looks good. A few comments and we should be be good to go.
"swiftpkg_kscrash", | ||
) | ||
|
||
# We patch KSCrash because it implicitly links against zlib and that information isn't available to rules_swift_package_manager |
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.
Could we wrap this comment to 80 characters?
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.
Can you convert the tabs to four spaces?
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.
Those are spaces already. But I'll run swiftformat over this file.
examples/kscrash_example/do_test
Outdated
# GH249: Do not update build files until the Gazelle extension supports the | ||
# shape of this example. | ||
# # Generate Swift external deps and update build files | ||
# bazel run //:tidy | ||
# "${bazel}" run //:swift_update_pkgs |
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.
Is this true? Does the gazelle plugin not work properly for this example?
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.
Could we move this file to examples/kscrash_example/third_party/KSCrash
? We will then need to update the reference to the patch in the MODULE.bazel
.
1227123
to
fc9c776
Compare
Some packages like KSCrash rely on .def files as textual headers.
I first noticed this while investigating #1279