Skip to content

Ctypes: simplify rules#5936

Closed
rgrinberg wants to merge 2 commits intomainfrom
ps/rr/refactor_ctypes___remove_configurator
Closed

Ctypes: simplify rules#5936
rgrinberg wants to merge 2 commits intomainfrom
ps/rr/refactor_ctypes___remove_configurator

Conversation

@rgrinberg
Copy link
Copy Markdown
Member

replaces #5932

I removed uses of configurator and replaced it with native pkg-config support. This is more correct, faster, and drops an unnecessary dependency.

Additionally, I removed the layer of indirection for passing flags. This again simplifies the code.

As I've noted on discord, I think the ctypes support would benefit from living in its own stanza. There's quite a bit of duplicated logic at the moment because the field exists for executables and libraries.

@rgrinberg rgrinberg requested a review from mbacarella June 28, 2022 18:21
Run pkg-config as a normal rule. This is both more correct and more
efficient.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>

ps-id: fe2317d7-3490-43ec-b4f0-3fe0be19298b
Use the rules api directly to simplify the generation of rules

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
@rgrinberg rgrinberg force-pushed the ps/rr/refactor_ctypes___remove_configurator branch from c095f6e to dcf2e30 Compare June 28, 2022 18:25
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