Skip to content

Add stdout redirection option to ILCompiler#131346

Open
MichalPetryka wants to merge 2 commits into
dotnet:mainfrom
MichalPetryka:patch-71
Open

Add stdout redirection option to ILCompiler#131346
MichalPetryka wants to merge 2 commits into
dotnet:mainfrom
MichalPetryka:patch-71

Conversation

@MichalPetryka

Copy link
Copy Markdown
Contributor

The SDK does not expose the stdout from ILC anywhere, add a flag to allow saving it to file instead.

Similar to JitStdOutFile.

The SDK does not expose the stdout from ILC anywhere, add a flag to allow saving it to file instead.

Similar to `JitStdOutFile`.
@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Jul 24, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib
See info in area-owners.md if you want to be subscribed.

@jkotas

jkotas commented Jul 24, 2026

Copy link
Copy Markdown
Member

This looks odd to me as a compiler command line option. Does any other compiler you are aware of have a command line option like this?

@MichalPetryka

MichalPetryka commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

This looks odd to me as a compiler command line option. Does any other compiler you are aware of have a command line option like this?

The JIT has DOTNWT_JitStdOutFile to deal with this issue, vcpkg always redirects compiler output to files, but I am not aware of any other cases.
MSVC and LINK.exe rely on MSBuild piping their outputs, IL2CPP pipes output from compiler to its stdout AFAIR.

EDIT: I'd be fine if instead we had some flag to pipe stdout through the sdk but that seems like a bigger ask.

@teo-tsirpanis

Copy link
Copy Markdown
Contributor

The SDK does not expose the stdout from ILC anywhere

Doesn't it show up on binlogs? The Exec task has a ConsoleOutput output item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-NativeAOT-coreclr community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants