예제 #1
0
 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);
 }
예제 #2
0
        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.
            }
        }
예제 #3
0
 public void AddModuleFlags(NativeModule module)
 {
     module.AddModuleFlag(ModuleFlagBehavior.Error, "PIC Level", 2);
 }
예제 #4
0
 public void AddModuleFlags(NativeModule module)
 {
     // Specify ABI const sizes so linker can detect mismatches
     module.AddModuleFlag(ModuleFlagBehavior.Error, "wchar_size", 4);
     module.AddModuleFlag(ModuleFlagBehavior.Error, "min_enum_size", 4);
 }