|
@@ -770,6 +770,8 @@ public:
|
|
|
: hlsl::DXIL::kLegacyLayoutString;
|
|
|
compiler.HlslLangExtensions = helper;
|
|
|
compiler.createDiagnostics(diagPrinter, false);
|
|
|
+ // don't output warning to stderr/file if "/no-warnings" is present.
|
|
|
+ compiler.getDiagnostics().setIgnoreAllWarnings(!Opts.OutputWarnings);
|
|
|
compiler.createFileManager();
|
|
|
compiler.createSourceManager(compiler.getFileManager());
|
|
|
compiler.setTarget(
|