Running `clang-dxc` with textual output was emitting various spurious warnings (if `dxv` wasn't on your path) or errors (if it was). Avoid these by not attempting to run this tool when it doesn't make sense to do so. Fixes #135874.
11 lines
219 B
HLSL
11 lines
219 B
HLSL
// RUN: %clang_dxc -DTEST=2 -Tlib_6_7 -### %s 2>&1 | FileCheck %s
|
|
|
|
// Make sure -D send to cc1.
|
|
// CHECK:"-D" "TEST=2"
|
|
|
|
#ifndef TEST
|
|
#error "TEST not defined"
|
|
#elif TEST != 2
|
|
#error "TEST defined to wrong value"
|
|
#endif
|