Only attempt to compile to native if managed passed

This commit is contained in:
David Fowler 2015-11-06 17:29:18 -08:00
parent 6d9d727ed2
commit 5b59b69d70

View file

@ -56,7 +56,7 @@ namespace Microsoft.DotNet.Tools.Compiler
foreach (var context in contexts)
{
success &= Compile(context, configValue, outputValue, intermediateOutput.Value(), buildProjectReferences);
if (isNative)
if (isNative & success)
{
success &= CompileNative(context, configValue, outputValue, buildProjectReferences);
}