private static void AddModuleFlags(NativeModule module) { module.AddModuleFlag(ModuleFlagBehavior.Warning, NativeModule.DwarfVersionValue, 4); module.AddModuleFlag(ModuleFlagBehavior.Warning, NativeModule.DebugVersionValue, NativeModule.DebugMetadataVersion); TargetDetails.AddModuleFlags(module); module.AddVersionIdentMetadata(VersionIdentString); }
public void AddModuleFlagTest( ) { using (var module = new NativeModule(TestModuleName)) { module.AddModuleFlag(ModuleFlagBehavior.Warning, NativeModule.DwarfVersionValue, 4); module.AddModuleFlag(ModuleFlagBehavior.Warning, NativeModule.DebugVersionValue, NativeModule.DebugMetadataVersion); module.AddModuleFlag(ModuleFlagBehavior.Error, "wchar_size", 4); module.AddModuleFlag(ModuleFlagBehavior.Error, "min_enum_size", 4); module.AddVersionIdentMetadata("unit-tests 1.0"); // currently no exposed means to get module level flags... // so at this point as long as adding the flags doesn't throw an exception // assume things are OK. } }