Skip to content

Commit bda0331

Browse files
committed
use ifndef rather than ifdef
1 parent cc74d7c commit bda0331

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/auxiliary/rust_test_helpers.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ float get_c_exhaust_sysv64_ints(
271271
// Variadic arguments are broken when using clang to compile nvptx-nvidia-cuda,
272272
// causing clang to ICE. As no test run on CI currently relies on these
273273
// functions, we don't compile them when building for nvptx-nvidia-cuda.
274-
#ifdef __CUDA_ARCH__
274+
#ifndef __CUDA_ARCH__
275275

276276
// Calculates the average of `(x + y) / n` where x: i64, y: f64. There must be exactly n pairs
277277
// passed as variadic arguments. There are two versions of this function: the

0 commit comments

Comments
 (0)