Skip to content

Add mswin support for cargo builder#6167

Merged
simi merged 1 commit into
ruby:masterfrom
ianks:cargo-mswin
Dec 21, 2022
Merged

Add mswin support for cargo builder#6167
simi merged 1 commit into
ruby:masterfrom
ianks:cargo-mswin

Conversation

@ianks
Copy link
Copy Markdown
Contributor

@ianks ianks commented Dec 20, 2022

  • Integrates some changes from rb-sys to make CargoBuilder work properly on mswin
  • Handle some linking edge cases where cargo fails
  • Pass along --cfg rubygems and --cfg rubygems_X_X_X as cargo config for integration points

@ianks
Copy link
Copy Markdown
Contributor Author

ianks commented Dec 21, 2022

Squashed my commits

Comment on lines +18 to +19
when /^-l\s*([^:\s])+/ # -lfoo, but not -l:libfoo.a
["-l", $1]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

When matching "-lfoo", $1 will be the last letter "o" only.
Is this expected?

And when /^-l\s*(\w+\S+)$/ covers "-lfoo", so this when clause only matches -l with a punctuation, such as "-l-foo".
Is this expected?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants