Skip to content

Commit

Permalink
fix linking on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jkarneges committed Nov 15, 2023
1 parent 25c786b commit d6507b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,11 @@ pub unsafe fn call_c_main(
#[cfg(all(test, target_os = "macos"))]
#[link(name = "pushpin-cpptest")]
#[link(name = "pushpin-cpp")]
#[link(name = "zmq")]
#[link(name = "QtCore", kind = "framework")]
#[link(name = "QtNetwork", kind = "framework")]
#[link(name = "QtTest", kind = "framework")]
#[link(name = "c++")]
extern "C" {
fn httpheaders_test(argc: libc::c_int, argv: *const *const libc::c_char) -> libc::c_int;
fn jwt_test(argc: libc::c_int, argv: *const *const libc::c_char) -> libc::c_int;
Expand All @@ -305,9 +307,11 @@ extern "C" {
#[cfg(all(test, not(target_os = "macos")))]
#[link(name = "pushpin-cpptest")]
#[link(name = "pushpin-cpp")]
#[link(name = "zmq")]
#[link(name = "Qt5Core")]
#[link(name = "Qt5Network")]
#[link(name = "Qt5Test")]
#[link(name = "stdc++")]
extern "C" {
fn httpheaders_test(argc: libc::c_int, argv: *const *const libc::c_char) -> libc::c_int;
fn jwt_test(argc: libc::c_int, argv: *const *const libc::c_char) -> libc::c_int;
Expand Down

0 comments on commit d6507b2

Please sign in to comment.