From 8ddc3aa5e2cd0570602becd45fe2580d4a5a8306 Mon Sep 17 00:00:00 2001 From: imaqtkatt Date: Tue, 27 Aug 2024 10:23:02 -0300 Subject: [PATCH] add flags to build.rs --- build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.rs b/build.rs index dd72c946..0b0a2193 100644 --- a/build.rs +++ b/build.rs @@ -37,6 +37,8 @@ fn main() { .flag("-diag-suppress=177") // variable was declared but never referenced .flag("-diag-suppress=550") // variable was set but never used .flag("-diag-suppress=20039") // a __host__ function redeclared with __device__, hence treated as a __host__ __device__ function + .flag("-diag-suppress=68") // integer conversion resulted in a change of sign + .flag("-diag-suppress=2464") // conversion from a string literal to "char *" is deprecated .compile("hvm-cu"); println!("cargo:rustc-cfg=feature=\"cuda\"");