Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Refactor nuget packages and dotnet-compile-native to support cross-targeting. #258

Open
gkhanna79 opened this issue Nov 13, 2015 · 5 comments

Comments

@gkhanna79
Copy link
Member

We should be able to use CLI command to support corss-compiling for different architectures on a given platform.

@MichalStrehovsky
Copy link
Member

FYI, RyuJIT currently doesn't support crosstargeting. Not sure if work on this is funded on the RyuJIT side.

@MichalStrehovsky
Copy link
Member

(Also, ObjWriter)

@ctaggart
Copy link

ctaggart commented May 14, 2019

Is there a way to disable CoreRT using a msbuild property or something? Our build server is Linux and I still need to publish packages for Windows and Mac even if I can't use CoreRT for them.

Currently, on the build server, when I do:

dotnet publish --no-restore -c Release -r osx-x64 Shirley/Shirley.fsproj

I get this error:

  /bin/sh: 2: /tmp/tmp1d1040a7779b43ee81e172e3b247bcad.exec.cmd: /root/.nuget/packages/runtime.osx-x64.microsoft.dotnet.ilcompiler/1.0.0-alpha-27714-01/tools/ilc: Exec format error

/root/.nuget/packages/microsoft.dotnet.ilcompiler/1.0.0-alpha-27714-01/build/Microsoft.NETCore.Native.targets(247,5): error MSB3073: The command ""/root/.nuget/packages/runtime.osx-x64.microsoft.dotnet.ilcompiler/1.0.0-alpha-27714-01/tools/ilc" @"obj/Release/netcoreapp2.2/osx-x64/native/Shirley.ilc.rsp"" exited with code 2. [/opt/jenkins/workspace/VMCP_Conveyor_PR-199/Shirley/Shirley.fsproj]

Any way to disable CoreRT for this publish?

@jkotas
Copy link
Member

jkotas commented May 14, 2019

Try /p:NativeCompilationDuringPublish=false

@MichalStrehovsky
Copy link
Member

People also use this pattern:

https://github.com/wieslawsoltes/Draw2D/blob/95dc2d3ced9332299177aca2df9f032b9d60489f/src/Draw2D/Draw2D.csproj#L36-L39

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants