Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uprustc: Add a new crate type, cdylib #33553
Conversation
rust-highfive
assigned
jroesch
May 11, 2016
This comment has been minimized.
This comment has been minimized.
|
r? @jroesch (rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
|
r? @brson |
rust-highfive
assigned
brson
and unassigned
jroesch
May 11, 2016
This comment has been minimized.
This comment has been minimized.
|
@bors r+ |
brson
closed this
May 13, 2016
This comment has been minimized.
This comment has been minimized.
|
|
brson
reopened this
May 13, 2016
eddyb
added a commit
to eddyb/rust
that referenced
this pull request
May 13, 2016
bors
added a commit
that referenced
this pull request
May 13, 2016
eddyb
reviewed
May 13, 2016
| let res = (|| -> io::Result<()> { | ||
| let mut f = BufWriter::new(File::create(&path)?); | ||
| for sym in exported_symbols(sess, trans, crate_type) { | ||
| writeln!(f, " {}", sym)?; |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@bors r- Likely responsible for this failure. |
This comment has been minimized.
This comment has been minimized.
|
Indeed! looks quite suspicious |
alexcrichton
force-pushed the
alexcrichton:cdylibs
branch
from
a3f5d08
to
bfe7a80
May 13, 2016
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
May 13, 2016
bors
added a commit
that referenced
this pull request
May 13, 2016
This comment has been minimized.
This comment has been minimized.
|
Travis fails |
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
May 14, 2016
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
I'm working on rebasing this over #33602 because otherwise I'd need windows to investigate my metadata problem. |
alexcrichton
force-pushed the
alexcrichton:cdylibs
branch
from
bfe7a80
to
557aae0
May 17, 2016
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
May 17, 2016
This comment has been minimized.
This comment has been minimized.
|
|
alexcrichton
force-pushed the
alexcrichton:cdylibs
branch
from
557aae0
to
e3517db
May 17, 2016
bors
added a commit
that referenced
this pull request
May 19, 2016
This comment has been minimized.
This comment has been minimized.
|
|
alexcrichton
force-pushed the
alexcrichton:cdylibs
branch
from
698ba68
to
0192796
May 19, 2016
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
May 19, 2016
This comment has been minimized.
This comment has been minimized.
|
|
alexcrichton
and others
added some commits
May 10, 2016
alexcrichton
force-pushed the
alexcrichton:cdylibs
branch
from
0192796
to
0d2c26c
May 19, 2016
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
May 20, 2016
This comment has been minimized.
This comment has been minimized.
bors
merged commit 0d2c26c
into
rust-lang:master
May 20, 2016
bors
referenced this pull request
May 20, 2016
Closed
rustc_trans: implement lld compatibility #33327
bluss
added
the
relnotes
label
May 21, 2016
This comment has been minimized.
This comment has been minimized.
|
This is kind of immediately a new feature on the stable release where this is included, isn't it? If I'm wrong, then the relnote tag can be removed again. |
sdroege
referenced this pull request
May 24, 2016
Closed
Use cdylib crate type once available in stable Rust #5
alexcrichton
deleted the
alexcrichton:cdylibs
branch
May 25, 2016
SSheldon
referenced this pull request
Jun 25, 2016
Open
Linker error for cdylib with panic=abort (Undefined symbol "_rust_eh_personality_catch") #34472
This comment has been minimized.
This comment has been minimized.
torkleyy
commented
Apr 9, 2017
|
@alexcrichton How can I compile a crate as |
This comment has been minimized.
This comment has been minimized.
|
@torkleyy unfortunately that's not possible right now (short of generating a new |
This comment has been minimized.
This comment has been minimized.
torkleyy
commented
Apr 10, 2017
|
@alexcrichton Thanks for your reply!
Sure, I'll do that. |
alexcrichton commentedMay 11, 2016
This commit is an implementation of RFC 1510 which adds a new crate type,
cdylib, to the compiler. This new crate type differs from the existingdylibcrate type in a few key ways:
externfunctions are visible symbolsThis commit is relatively simple by just plubming the compiler with another
crate type which takes different branches here and there. The only major change
is an implementation of the
Linker::export_symbolsfunction on Unix which nowactually does something. This helps restrict the public symbols from a cdylib on
Unix.
With this PR a "hello world"
cdylibis 7.2K while the samedylibis 2.4MB,which is some nice size savings!
Closes #33132