Example #1
0
 Defaults(
     this VisualCCommon.ICommonAssemblerSettings settings,
     Bam.Core.Module module)
 {
     settings.NoLogo       = true;
     settings.WarningLevel = EAssemblerWarningLevel.Level3;
 }
 Convert(
     this VisualCCommon.ICommonAssemblerSettings settings,
     Bam.Core.StringArray commandLine)
 {
     if (settings.NoLogo)
     {
         commandLine.Add("-nologo");
     }
     commandLine.Add(System.String.Format("-W{0}", settings.WarningLevel.ToString("D")));
 }
Example #3
0
 Convert(
     this VisualCCommon.ICommonAssemblerSettings settings,
     Bam.Core.Module module,
     VSSolutionBuilder.VSSettingsGroup vsSettingsGroup,
     string condition)
 {
     vsSettingsGroup.AddSetting("NoLogo", settings.NoLogo, condition);
     vsSettingsGroup.AddSetting("WarningLevel", settings.WarningLevel.ToString("D"), condition);
     // safe exception handlers only required in 32-bit mode
     if (((settings as Bam.Core.Settings).Module as C.CModule).BitDepth == C.EBit.ThirtyTwo)
     {
         vsSettingsGroup.AddSetting("UseSafeExceptionHandlers", settings.SafeExceptionHandlers, condition);
     }
 }
        Convert(
            this VisualCCommon.ICommonAssemblerSettings settings,
            Bam.Core.StringArray commandLine)
        {
            if (settings.NoLogo)
            {
                commandLine.Add("-nologo");
            }
            commandLine.Add(System.String.Format("-W{0}", settings.WarningLevel.ToString("D")));

            // safe exception handlers only required in 32-bit mode
            if (((settings as Bam.Core.Settings).Module as C.CModule).BitDepth == C.EBit.ThirtyTwo)
            {
                if (settings.SafeExceptionHandlers)
                {
                    commandLine.Add("-safeseh");
                }
            }
        }