Skip to content

Commit 33dfe33

Browse files
authored
Build more curl files unconditionally (#406)
Helps fix targets where `-gc-sections` isn't specified.
1 parent 3007f21 commit 33dfe33

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

ci/run.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,14 @@ if [ -z "$NO_RUN" ]; then
1111
cargo test --target $TARGET
1212
cargo test --target $TARGET --features static-curl
1313
cargo test --target $TARGET --features static-curl,protocol-ftp
14+
15+
# Note that `-Clink-dead-code` is passed here to suppress `--gc-sections` to
16+
# help confirm that we're compiling everything necessary for curl itself.
17+
RUSTFLAGS=-Clink-dead-code \
1418
cargo run --manifest-path systest/Cargo.toml --target $TARGET
19+
RUSTFLAGS=-Clink-dead-code \
1520
cargo run --manifest-path systest/Cargo.toml --target $TARGET --features curl-sys/static-curl,curl-sys/protocol-ftp
21+
1622
cargo doc --no-deps --target $TARGET
1723
cargo doc --no-deps -p curl-sys --target $TARGET
1824
fi

curl-sys/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ fn main() {
133133
.file("curl/lib/asyn-thread.c")
134134
.file("curl/lib/altsvc.c")
135135
.file("curl/lib/base64.c")
136+
.file("curl/lib/bufref.c")
136137
.file("curl/lib/conncache.c")
137138
.file("curl/lib/connect.c")
138139
.file("curl/lib/content_encoding.c")
@@ -202,6 +203,7 @@ fn main() {
202203
.file("curl/lib/urlapi.c")
203204
.file("curl/lib/version.c")
204205
.file("curl/lib/vauth/digest.c")
206+
.file("curl/lib/vauth/vauth.c")
205207
.file("curl/lib/vtls/keylog.c")
206208
.file("curl/lib/vtls/vtls.c")
207209
.file("curl/lib/warnless.c")

0 commit comments

Comments
 (0)