diff options
author | Sergey Pepyakin <s.pepyakin@gmail.com> | 2017-10-11 12:11:38 +0300 |
---|---|---|
committer | Sergey Pepyakin <s.pepyakin@gmail.com> | 2017-10-11 12:11:38 +0300 |
commit | f74a52c95a76709c3b7bee890b2f03f67dc513bb (patch) | |
tree | 4d5a85953c83546cfb3b74edbe5655e4fbbd8097 /tests/tests.rs | |
parent | d8f27ebba04c55454f54e00370ffde3b2db94c8c (diff) |
Give explicit target to builder tests.
Diffstat (limited to 'tests/tests.rs')
-rw-r--r-- | tests/tests.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/tests.rs b/tests/tests.rs index df794b64..36c872dc 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -302,6 +302,7 @@ include!(concat!(env!("OUT_DIR"), "/tests.rs")); fn test_header_contents() { let actual = builder() .header_contents("test.h", "int foo(const char* a);") + .clang_arg("--target=x86_64-unknown-linux") .generate() .unwrap() .to_string(); @@ -330,6 +331,7 @@ fn test_multiple_header_calls_in_builder() { "/tests/headers/func_ptr.h" )) .header(concat!(env!("CARGO_MANIFEST_DIR"), "/tests/headers/char.h")) + .clang_arg("--target=x86_64-unknown-linux") .generate() .unwrap() .to_string(); |