[SPIR-V] Error when -Gis is used with -spirv (#4529)
Though we may support -Gis with the SPIR-V backend in future, it is currently not supported, so this change makes that explicit to the user with an error message when it is used. Related to #3331
This commit is contained in:
Родитель
a19c326294
Коммит
0ef9b70289
|
@ -329,7 +329,7 @@ static bool hasUnsupportedSpirvOption(const InputArgList &args,
|
|||
// available options and their current compatibility is needed to generate a
|
||||
// complete list.
|
||||
std::vector<OptSpecifier> unsupportedOpts = {OPT_Fd, OPT_Fre,
|
||||
OPT_Qstrip_reflect};
|
||||
OPT_Qstrip_reflect, OPT_Gis};
|
||||
|
||||
for (const auto &id : unsupportedOpts) {
|
||||
if (Arg *arg = args.getLastArg(id)) {
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
// RUN: %dxc -T ps_6_0 -E main -spirv -Gis
|
||||
|
||||
void main() {}
|
||||
|
||||
// CHECK: -Gis is not supported with -spirv
|
Загрузка…
Ссылка в новой задаче