Skip to content

Commit f74a52c

Browse files
committed
Give explicit target to builder tests.
1 parent d8f27eb commit f74a52c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/tests.rs

+2
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ include!(concat!(env!("OUT_DIR"), "/tests.rs"));
302302
fn test_header_contents() {
303303
let actual = builder()
304304
.header_contents("test.h", "int foo(const char* a);")
305+
.clang_arg("--target=x86_64-unknown-linux")
305306
.generate()
306307
.unwrap()
307308
.to_string();
@@ -330,6 +331,7 @@ fn test_multiple_header_calls_in_builder() {
330331
"/tests/headers/func_ptr.h"
331332
))
332333
.header(concat!(env!("CARGO_MANIFEST_DIR"), "/tests/headers/char.h"))
334+
.clang_arg("--target=x86_64-unknown-linux")
333335
.generate()
334336
.unwrap()
335337
.to_string();

0 commit comments

Comments
 (0)