Skip to content

Add cfgs (everywhere) in liblibc for NaCl targets.#21581

Merged
bors merged 1 commit into
rust-lang:masterfrom
DiamondLovesYou:nacl-libc
Feb 24, 2015
Merged

Add cfgs (everywhere) in liblibc for NaCl targets.#21581
bors merged 1 commit into
rust-lang:masterfrom
DiamondLovesYou:nacl-libc

Conversation

@DiamondLovesYou

Copy link
Copy Markdown
Contributor

This does not allow Rust proper to target NaCl; this just adds support for NaCl
crosses to liblibc on crates.io.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @pcwalton

(rust_highfive has picked a reviewer for you, use r? to override)

@DiamondLovesYou

Copy link
Copy Markdown
Contributor Author

This is preventing some of my projects from building.

r? @alexcrichton

@alexcrichton

Copy link
Copy Markdown
Member

I'd like to start trying hard to cut down on the explosion of #[cfg] in liblibc as it really does seem to be getting out of hand. To that end, could you make a few modifications?

  • The top-level pub use can all go back to pub use foo::* now that globs are stable.
  • Each sub-block should avoid one-off #[cfg] (this PR adds a lot), if that happens then I think it should be separated to a whole new block.

@DiamondLovesYou DiamondLovesYou force-pushed the nacl-libc branch 2 times, most recently from e77f637 to 2136e63 Compare February 16, 2015 18:27
@DiamondLovesYou

Copy link
Copy Markdown
Contributor Author

@alexcrichton Done!

Comment thread src/liblibc/lib.rs

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.

Shouldn't this module not be changing?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

SIGPIPE is exported in posix88, conflicting with this (and the others).

@DiamondLovesYou

Copy link
Copy Markdown
Contributor Author

@alexcrichton I've addressed your comments.

@alexcrichton

Copy link
Copy Markdown
Member

@bors: r+ c70e4ce

Thanks!

@bors

bors commented Feb 17, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit c70e4ce with merge 439f290...

@bors

bors commented Feb 17, 2015

Copy link
Copy Markdown
Collaborator

💔 Test failed - auto-win-32-nopt-t

@DiamondLovesYou

Copy link
Copy Markdown
Contributor Author

@alexcrichton I've issued a possible fix (no local win machine available to test).

@alexcrichton

Copy link
Copy Markdown
Member

Thanks! Could you squash the commits down together as well?

@DiamondLovesYou

Copy link
Copy Markdown
Contributor Author

@alexcrichton Done!

@alexcrichton

Copy link
Copy Markdown
Member

@bors: r+ a8004e3

@bors

bors commented Feb 17, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit a8004e3 with merge 9abe865...

@bors

bors commented Feb 17, 2015

Copy link
Copy Markdown
Collaborator

💔 Test failed - auto-win-32-opt

@DiamondLovesYou

Copy link
Copy Markdown
Contributor Author

@alexcrichton And again.

@bors

bors commented Feb 22, 2015

Copy link
Copy Markdown
Collaborator

💔 Test failed - auto-mac-64-nopt-t

@Manishearth

Copy link
Copy Markdown
Member

@bors: retry

(slave lost)

@DiamondLovesYou

Copy link
Copy Markdown
Contributor Author

I didn't know it was possible to cause so much pain and suffering.

@Manishearth

Copy link
Copy Markdown
Member

Not your fault, I blame the windows builders.

I'm looking up what the appropriate sacrifice to appease the Windows gods is right now. 😿

@bors

bors commented Feb 22, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 949d1ff with merge 1394b43...

@huonw

huonw commented Feb 22, 2015

Copy link
Copy Markdown
Contributor

Something weird seems to be going on with #22548, and this PR happened to be caught up. Closing temporarily.

@huonw huonw closed this Feb 22, 2015
@Manishearth

Copy link
Copy Markdown
Member

(My fault, sorry about this. We'll get your PR through once the rollup passes.)

@huonw huonw reopened this Feb 22, 2015
@huonw

huonw commented Feb 22, 2015

Copy link
Copy Markdown
Contributor

@bors retry

@huonw

huonw commented Feb 22, 2015

Copy link
Copy Markdown
Contributor

@bors r=alexcrichton 949d

@Manishearth

Copy link
Copy Markdown
Member

@bors: p=1

Let's get platform specific stuff out of the way first

@bors

bors commented Feb 22, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 949d1ff with merge 5ef794a...

@bors

bors commented Feb 22, 2015

Copy link
Copy Markdown
Collaborator

💔 Test failed - auto-mac-32-opt

@alexcrichton

Copy link
Copy Markdown
Member

@bors: retry

bors added a commit that referenced this pull request Feb 23, 2015
This does not allow Rust proper to target NaCl; this just adds support for NaCl
crosses to `liblibc` on crates.io.
@bors

bors commented Feb 23, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 949d1ff with merge 3d01f4a...

@bors

bors commented Feb 23, 2015

Copy link
Copy Markdown
Collaborator

💔 Test failed - auto-win-32-nopt-t

@Manishearth

Copy link
Copy Markdown
Member

@bors

bors commented Feb 24, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 949d1ff with merge 8cd30db...

@bors

bors commented Feb 24, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 949d1ff with merge 0ef56da...

bors added a commit that referenced this pull request Feb 24, 2015
This does not allow Rust proper to target NaCl; this just adds support for NaCl
crosses to `liblibc` on crates.io.
@bors

bors commented Feb 24, 2015

Copy link
Copy Markdown
Collaborator

@bors bors merged commit 949d1ff into rust-lang:master Feb 24, 2015
@Manishearth

Copy link
Copy Markdown
Member

Yes!

@DiamondLovesYou

Copy link
Copy Markdown
Contributor Author

\o/

lnicola pushed a commit to lnicola/rust that referenced this pull request Feb 16, 2026
internal: Run clippy as a separate CI step
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.

7 participants