Steve

Results 256 comments of Steve

It seems the target info is being overwritten unexpectedly.

> I think those should be exposed as separate compiler options instead, just like #5668 and #5669 would be. Sounds reasonable but it would require building separate images for a...

You can check the "Link to binary" in output options. By default it compiles code in library mode.

Those compiler options are passed to crossgen2/corerun, not roslyn/msbuild. We should really have a place to document the available options on the website.

Also note if you want to use top-level statements, be sure to check the output option "Link to binary".

The main purpose of using compiler-explorer is to aid the codegen disasm, while changing options passed to roslyn doesn't affect codegen at all.

I think you can just download the official offline installer from https://dotnet.microsoft.com/en-us/download/dotnet

Here're `Test.ilc.rsp` and all referenced assembiles: [rsp_with_refs.zip](https://github.com/dotnet/corert/files/4420299/rsp_with_refs.zip)

I believe this should be reported to Roslyn repo. There's nothing we can do on the Avalonia side.

Note that LLVM has started to support HLSL/DXIL officially since LLVM 15: https://releases.llvm.org/15.0.0/tools/clang/docs/HLSLSupport.html, so the prior approach may not need the source code of DXC anymore.