Skip to content

Commit 734a912

Browse files
authored
[Clang][HLSL] Fix invalid flag passed by the driver (#170300)
The test were using the DXC driver in Clang, which adds the `--spirv-ext=` option. Turns out some buildbots are built without this flag support, meaning any test using this driver would fail with an 'unknown command line argument' error.
1 parent b4149a0 commit 734a912

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/test/SemaHLSL/Semantics/semantic.explicit-mix-location-2.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang --driver-mode=dxc %s -T ps_6_8 -E main1 -O3 -spirv -Xclang -verify -Xclang -verify-ignore-unexpected=note
1+
// RUN: %clang_cc1 -finclude-default-header -triple spirv-pc-vulkan1.3-pixel %s -emit-llvm-only -disable-llvm-passes -verify -verify-ignore-unexpected=note
22

33
// The following code is not legal: both semantics A and B will be lowered
44
// into a Location decoration. And mixing implicit and explicit Location

clang/test/SemaHLSL/Semantics/semantic.explicit-mix-location.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang --driver-mode=dxc %s -T ps_6_8 -E main1 -O3 -spirv -Xclang -verify -Xclang -verify-ignore-unexpected=note
1+
// RUN: %clang_cc1 -finclude-default-header -triple spirv-pc-vulkan1.3-pixel %s -emit-llvm-only -disable-llvm-passes -verify -verify-ignore-unexpected=note
22

33
// The following code is not legal: both semantics A and B will be lowered
44
// into a Location decoration. And mixing implicit and explicit Location

0 commit comments

Comments
 (0)