Skip to content

Commit e87888d

Browse files
committed
add test, remove option
1 parent 3a4cf10 commit e87888d

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

include/dxc/Support/HLSLOptions.td

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,6 @@ def print_before_all : Flag<["-", "/"], "print-before-all">, Group<hlslcomp_Grou
317317
HelpText<"Print LLVM IR before each pass.">;
318318
def print_before : Separate<["-", "/"], "print-before">, Group<hlslcomp_Group>, Flags<[CoreOption, HelpHidden]>,
319319
HelpText<"Print LLVM IR before a specific pass. May be specificied multiple times.">;
320-
def select_validator : Separate<["-", "/"], "select-validator">, Group<hlslcomp_Group>, Flags<[CoreOption, HelpHidden]>,
321-
HelpText<"Select validator: auto: (default) use DXIL.dll if found, otherwise use internal; internal: internal non-signing validator; external: use DXIL.dll if found, otherwise fail compilation.">;
322320
def print_after_all : Flag<["-", "/"], "print-after-all">, Group<hlslcomp_Group>, Flags<[CoreOption, HelpHidden]>,
323321
HelpText<"Print LLVM IR after each pass.">;
324322
def print_after : Separate<["-", "/"], "print-after">, Group<hlslcomp_Group>, Flags<[CoreOption, HelpHidden]>,
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Test that the deprecated option, select-validator, doesn't work.
2+
// RUN: not %dxc -E main -T vs_6_7 -select-validator internal %s 2>&1 | FileCheck %s
3+
4+
// CHECK: dxc failed : Unknown argument: '-select-validator'
5+
6+
float4 main(int loc : SV_StartVertexLocation
7+
, uint loc2 : SV_StartInstanceLocation
8+
) : SV_Position
9+
{
10+
float4 r = 0;
11+
r += loc;
12+
r += loc2;
13+
return r;
14+
}

0 commit comments

Comments
 (0)