 // RUN:   -check-prefix CUDA-NL %s
 
 // Typical compilation + link case:
-// RUN: %clang -### %s 2>&1 \
+// RUN: %clang -### -target=x86_64-linux-gnu %s 2>&1 \
 // Compile device-side to PTX assembly and make sure we use it on the host side
 // RUN:   | FileCheck -check-prefix CUDA-D1 \
 // Then compile host side and incorporate device code.

// Tests CUDA compilation pipeline construction in Driver.
// REQUIRES: clang-driver

// Simple compilation case:
// RUN: %clang -### -c %s 2>&1 \
// Compile device-side to PTX assembly and make sure we use it on the host side.
// RUN:   | FileCheck -check-prefix CUDA-D1 \
// Then compile host side and incorporate device code.


// Verify that with -S we compile host and device sides to assembly
// and incorporate device code on the host side.
// RUN: %clang -### -target=x86_64-linux-gnu -S -c %s 2>&1 \
// Compile device-side to PTX assembly
// RUN:   | FileCheck -check-prefix CUDA-D1 \
// Then compile host side and incorporate GPU code.
