Skip to content

Commit 73ea988

Browse files
committed
Explicitly exclude files using cURL
Can't get things to compile without doing this. I'm either missing some glaringly obvious flag I need to disable, or there's an issue with the `librdkafka` version we are using when one tries to build without `curl`.
1 parent 6e9e57b commit 73ea988

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Package.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ let rdkafkaExclude = [
2424
"./librdkafka/src/rdkafka_sasl_win32.c",
2525
"./librdkafka/src/rdwin32.h",
2626
"./librdkafka/src/win32_config.h",
27+
// Remove dependency on cURL. Disabling `ENABLE_CURL` and `WITH_CURL` does
28+
// not appear to prevent processing of the below files, so we have to exclude
29+
// them explicitly.
30+
"./librdkafka/src/rdkafka_sasl_oauthbearer.c",
31+
"./librdkafka/src/rdkafka_sasl_oauthbearer_oidc.c",
32+
"./librdkafka/src/rdhttp.c",
2733
]
2834

2935
let package = Package(

0 commit comments

Comments
 (0)