Skip to content

Do not copy NativeVersion.rc if unchanged.#15563

Merged
akoeplinger merged 1 commit intodotnet:mainfrom
teo-tsirpanis:nativeversion-incremental
Feb 24, 2025
Merged

Do not copy NativeVersion.rc if unchanged.#15563
akoeplinger merged 1 commit intodotnet:mainfrom
teo-tsirpanis:nativeversion-incremental

Conversation

@teo-tsirpanis
Copy link
Copy Markdown
Contributor

I noticed that when I build the runtime with nothing changed since the last time I did it, NativeVersion.rc always gets compiled, and the potentially expensive linking step always runs.

  [1/7] Building RC object mono\mini\CMakeFiles\monosgen-objects.dir\C_\Users\teo\code\dotnet-runtime\artifacts\obj\NativeVersion.rc.res
  [2/7] Building RC object mono\mini\CMakeFiles\monosgen-objects_shared.dir\C_\Users\teo\code\dotnet-runtime\artifacts\obj\NativeVersion.rc.res
  [3/7] Building RC object mono\mini\CMakeFiles\mono-sgen.dir\C_\Users\teo\code\dotnet-runtime\artifacts\obj\NativeVersion.rc.res
  [4/7] Linking C static library mono\mini\monosgen-2.0.lib
  [5/7] Linking C shared library mono\mini\coreclr.dll
  [6/7] Linking C executable mono\mini\mono-sgen.exe
  [6/7] Install the project...

This PR might fix this.

To double check:

@akoeplinger akoeplinger merged commit a47345a into dotnet:main Feb 24, 2025
@teo-tsirpanis teo-tsirpanis deleted the nativeversion-incremental branch February 24, 2025 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants