[Mono-dev] xbuild not passing /platform: commandline
Ankit Jain
radical at gmail.com
Wed Nov 10 00:51:17 EST 2010
Committed [1]. Thanks for the patch.
-Ankit
1. https://github.com/mono/mono/commit/ee5c9692cb93d98c3cbcc51b387b5d99d0383fc3
On Tue, Nov 9, 2010 at 10:27 PM, technomage1972
<dellis1972 at googlemail.com> wrote:
>
> I have recently discovered that the xbuild sytems was not passing the
> platform setting from project files on to the compiler.
>
> I tracked the issue down to the Csc.cs.
>
> The following is a patch to correct the issue.
>
> Dean
>
>
>
> diff --git a/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/Csc.cs
> b/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/Csc.cs
> index 18f3096..5941f58 100644
> --- a/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/Csc.cs
> +++ b/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/Csc.cs
> @@ -88,7 +88,12 @@ namespace Microsoft.Build.Tasks {
> commandLine.AppendSwitch ("/nostdlib");
>
> //platform
> - //
> + //
> + if (Bag ["Platform"] != null)
> + {
> + commandLine.AppendSwitch(String.Format("/platform:{0}", Platform));
> + }
> +
> if (References != null)
> foreach (ITaskItem item in References)
> commandLine.AppendSwitchIfNotNull ("/reference:", item.ItemSpec);
>
> --
> View this message in context: http://mono.1490590.n4.nabble.com/xbuild-not-passing-platform-commandline-tp3034648p3034648.html
> Sent from the Mono - Dev mailing list archive at Nabble.com.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
--
Blog : http://www.ankitjain.org/blog
More information about the Mono-devel-list
mailing list