Skip to content

Commit 34f4fb0

Browse files
aus-inteligcbot
authored andcommitted
Add warning when -cmc option is used for SPIRV path
1 parent e0e9d0b commit 34f4fb0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

IGC/VectorCompiler/lib/Driver/Driver.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,13 @@ parseApiOptions(StringSaver &Saver, StringRef ApiOptions, bool IsStrictMode) {
497497
// Deprecated -cmc parsing just for compatibility.
498498
const std::string IgcmcOptName =
499499
Options.getOption(vc::options::OPT_igcmc).getPrefixedName();
500-
if (HasOption(IgcmcOptName))
500+
if (HasOption(IgcmcOptName)) {
501+
llvm::errs()
502+
<< "'" << IgcmcOptName
503+
<< "' option is deprecated and will be removed in the future release. "
504+
"Use -vc-codegen instead for compiling from SPIRV.\n";
501505
return parseOptions(Argv, vc::options::IgcmcApiOption, IsStrictMode);
506+
}
502507

503508
return make_error<vc::NotVCError>();
504509
}

0 commit comments

Comments
 (0)