- 
                Notifications
    You must be signed in to change notification settings 
- Fork 5.2k
[LoongArch64] add coreclr-libraries directory. #62888
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
update from runtime.
| Note regarding the  This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. | 
| I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. | 
        
          
                src/libraries/System.Private.CoreLib/src/System/Reflection/ImageFileMachine.cs
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                src/libraries/System.Private.CoreLib/src/System/Reflection/ProcessorArchitecture.cs
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                src/libraries/System.Runtime.InteropServices.RuntimeInformation/tests/CheckArchitectureTests.cs
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                src/libraries/System.Reflection.Metadata/src/System/Reflection/PortableExecutable/Machine.cs
              
                Outdated
          
            Show resolved
            Hide resolved
        
      | Tagging subscribers to this area: @dotnet/area-system-runtime Issue Details[LoongArch64] add coreclr-libraries directory. 
 | 
        
          
                ....InteropServices.RuntimeInformation/ref/System.Runtime.InteropServices.RuntimeInformation.cs
              
                Outdated
          
            Show resolved
            Hide resolved
        
      | Notes for updating libraries: The reference source should also be updated together with implementation when any public api changes. For other libraries the ref source is under the  When updating the CoreCLR version of CoreLib, don't forget Mono (under  | 
        
          
                src/coreclr/System.Private.CoreLib/src/System/Reflection/AssemblyName.CoreCLR.cs
              
                Outdated
          
            Show resolved
            Hide resolved
        
      | { | ||
| int x = (((int)_flags) & 0x70) >> 4; | ||
| if (x > 5) | ||
| if (x > 6) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes in this file should be reverted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK,Thanks.
| I see that you are always squashing your changes into the single commit. Could you please push new commits instead of squashing? We prefer that the changes done based on codereview feedback are done as separate commits to make it easy to see what changed. We will squash all changes as part of the merge. More details are about our PR process are in https://github.com/dotnet/runtime/blob/main/docs/pr-guide.md#quick-code-review-rules | 
        
          
                src/libraries/System.Reflection.Metadata/src/System/Reflection/PortableExecutable/Machine.cs
          
            Show resolved
            Hide resolved
        
      | 
 Thanks for your review and suggestion~ | 
| 
 Thanks ! | 
| Now this PR can be compiled sucessfully by the CI on the native mode. What should I do next ? | 
| 
 Is this PR ok now ? | 
| 
 No, it has a bunch of conflicts. You should see "This branch has conflicts that must be resolved". You need to merge from current main to get these conflicts resolved. | 
| 
 I have a question that needs your help: | 
| 
 If I merge the main directly to this PR and resolv the conflicts, then I push to this PR, is it OK? | 
| Yep | 
| 
 OK,  thanks. | 
Conflicts: src/libraries/Common/src/Interop/Unix/System.Native/Interop.ProcessorArchitecture.cs src/libraries/System.Runtime.InteropServices.RuntimeInformation/ref/System.Runtime.InteropServices.RuntimeInformation.cs src/libraries/System.Runtime.InteropServices.RuntimeInformation/src/System/Runtime/InteropServices/RuntimeInformation/RuntimeInformation.Unix.cs src/native/libs/System.Native/pal_runtimeinformation.c
| 
 OK,  thanks. 
 Should this file be modified ? If need, I will update it. | 
        
          
                ...es/System.Reflection.Metadata/src/System/Reflection/PortableExecutable/ManagedTextSection.cs
              
                Outdated
          
            Show resolved
            Hide resolved
        
      …/PortableExecutable/ManagedTextSection.cs
        
          
                src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Architecture.cs
          
            Show resolved
            Hide resolved
        
      …ate.CoreLib.Shared.projitems`.
| The last build break is: "The generated CompatibilityMap differs from runtime.compatibility.json and UpdateRuntimeFiles was not specified. Please specify UpdateRuntimeFiles=true to commit the changes." Could you please run the build with  | 
| 
 Thanaks ~ | 
| 
 Hi, @jkotas Running the command  Is this right ? I didn't meet the error https://github.com/dotnet/runtime/pull/62888/files#annotation_2513131987 | 
cd src/libraries/Microsoft.NETCore.Platforms/src dotnet build -c Release Microsoft.NETCore.Platforms.csproj /p:UpdateRuntimeFiles=true /t:UpdateRuntimeJson
| I have run: and pushed up the result. It should fix the build break. | 
| 
 Thanks, | 
| 
 @jkotas I runned the command and the results is : and the modified files are: and the corresponding differences liking the 712e19f | 
| Closing&reopening to trigger the CI | 
[LoongArch64] add coreclr-libraries directory.