diff --git a/src/QsCompiler/CommandLineTool/Commands/Build.cs b/src/QsCompiler/CommandLineTool/Commands/Build.cs index 284876d638..2f4f873293 100644 --- a/src/QsCompiler/CommandLineTool/Commands/Build.cs +++ b/src/QsCompiler/CommandLineTool/Commands/Build.cs @@ -9,6 +9,7 @@ using CommandLine; using CommandLine.Text; using Microsoft.Quantum.QsCompiler.Diagnostics; +using static Microsoft.Quantum.QsCompiler.ReservedKeywords.AssemblyConstants; namespace Microsoft.Quantum.QsCompiler.CommandLineCompiler @@ -160,6 +161,7 @@ public static int Run(BuildOptions options, ConsoleLogger logger) AssemblyConstants = assemblyConstants, TargetPackageAssembly = options.GetTargetPackageAssemblyPath(logger), RuntimeCapabilities = options.RuntimeCapabilites, + SkipMonomorphization = options.RuntimeCapabilites == RuntimeCapabilities.Unknown, GenerateFunctorSupport = true, SkipSyntaxTreeTrimming = options.TrimLevel == 0, AttemptFullPreEvaluation = options.TrimLevel > 2, diff --git a/src/QsCompiler/CommandLineTool/Commands/Diagnose.cs b/src/QsCompiler/CommandLineTool/Commands/Diagnose.cs index 18f1214332..7cc2316a91 100644 --- a/src/QsCompiler/CommandLineTool/Commands/Diagnose.cs +++ b/src/QsCompiler/CommandLineTool/Commands/Diagnose.cs @@ -15,6 +15,7 @@ using Microsoft.Quantum.QsCompiler.Transformations.BasicTransformations; using Microsoft.VisualStudio.LanguageServer.Protocol; using Newtonsoft.Json; +using static Microsoft.Quantum.QsCompiler.ReservedKeywords.AssemblyConstants; using Compilation = Microsoft.Quantum.QsCompiler.CompilationBuilder.CompilationUnitManager.Compilation; @@ -219,6 +220,7 @@ public static int Run(DiagnoseOptions options, ConsoleLogger logger) AssemblyConstants = assemblyConstants, TargetPackageAssembly = options.GetTargetPackageAssemblyPath(logger), RuntimeCapabilities = options.RuntimeCapabilites, + SkipMonomorphization = options.RuntimeCapabilites == RuntimeCapabilities.Unknown, GenerateFunctorSupport = true, SkipSyntaxTreeTrimming = options.TrimLevel == 0, AttemptFullPreEvaluation = options.TrimLevel > 2,