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
[Linker] Remove bundled mscorlib.xml descriptor from mmp and mtouch #3772
Conversation
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.
I'm kinda surprised we didn't reference mscorlib.xml anywhere in code, but a quick grep didn't bring up anything obvious.
tools/mmp/Makefile
Outdated
@@ -104,7 +104,6 @@ tuner_sources = \ | |||
../../src/build/mac/Constants.cs | |||
|
|||
linker_resources = \ |
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.
Can't you remove the entire linker_resources
variable?
tools/mtouch/Makefile
Outdated
@@ -15,7 +15,6 @@ MONOLINKER=$(LINKER_TOOLS_PATH)/linker | |||
MONO_TUNER=$(LINKER_TOOLS_PATH)/tuner | |||
|
|||
LINKER_RESOURCES = \ |
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.
Same: redundant variable now.
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.
let's remove both files too (from our repo)
@rolfbjarne / @spouliot done! Thanks for the feedback! |
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.
Still pending results from the device tests, which will probably not complete until sometime next week.
Build failure |
This PR is blocked on mono/mono#7716 |
Two tests are failing:
The second one is Also this PR can only go in until the descriptor is fixed in mono and mono 2018-02 #3402 is merged and rebased with the mono fix. |
This fixes xamarin#3749 We currently process both mscorlib.xml descriptors[1] from the mtouch/mmp bundle and also the one contained in mscorlib.dll as resource, we are now removing the descriptor bundled inside mtouch and mmp in favour of the one bundled in mscorlib.dll. Source descriptors files for diff: mono (master): https://github.com/mono/mono/blob/ea4274f2eb74cddf23c9c219b086cd41add0efce/mcs/class/corlib/LinkerDescriptor/mscorlib.xml XI (master): https://github.com/xamarin/xamarin-macios/blob/da6db5f6601b74fbc8324e974c83a4c33186dc12/tools/linker/Descriptors/mscorlib.xml XM (master): https://github.com/xamarin/xamarin-macios/blob/da6db5f6601b74fbc8324e974c83a4c33186dc12/tools/mmp/linker/Descriptors/mscorlib.xml Diffs: Mono - XI descriptor diff: https://gist.github.com/dalexsoto/f0b1c9c66bf50edf8198063ec039a17b Mono - XM descriptor diff: https://gist.github.com/dalexsoto/06b253a6743d366a4b9addc21a1e2c2a [1]: xamarin#3749 (comment)
Build success
|
This fixes #3749
We currently process both mscorlib.xml descriptors from the mtouch/mmp
bundle and also the one contained in mscorlib.dll as resource, we are now removing
the descriptor bundled inside mtouch and mmp in favour of the one bundled in
mscorlib.dll.
Source descriptors files for diff:
mono (master): https://github.com/mono/mono/blob/ea4274f2eb74cddf23c9c219b086cd41add0efce/mcs/class/corlib/LinkerDescriptor/mscorlib.xml
XI (master): https://github.com/xamarin/xamarin-macios/blob/da6db5f6601b74fbc8324e974c83a4c33186dc12/tools/linker/Descriptors/mscorlib.xml
XM (master): https://github.com/xamarin/xamarin-macios/blob/da6db5f6601b74fbc8324e974c83a4c33186dc12/tools/mmp/linker/Descriptors/mscorlib.xml
Diffs:
Mono - XI descriptor diff: https://gist.github.com/dalexsoto/f0b1c9c66bf50edf8198063ec039a17b
Mono - XM descriptor diff: https://gist.github.com/dalexsoto/06b253a6743d366a4b9addc21a1e2c2a