Skip to content

Only write the shaders.cpp file when its content changes - #1824

Merged
illwieckz merged 2 commits into
masterfrom
illwieckz/conditional-shaders
Sep 28, 2025
Merged

illwieckz merged 2 commits into
masterfrom
illwieckz/conditional-shaders

Conversation

@illwieckz

Copy link
Copy Markdown
Member

Add a reusable helper to write a generated file only if its content changed.

Use it for writing (or not writing) the shaders.cpp file.

Fixes #1820:

@illwieckz illwieckz added T-Improvement Improvement for an existing feature A-Build A-Client labels Sep 27, 2025
@illwieckz illwieckz changed the title Write the shaders.cpp file only if it changed Only write the shaders.cpp file when its content changes Sep 27, 2025
Comment thread cmake/DaemonBuildInfo.cmake Resolved
Comment thread src.cmake Resolved
@illwieckz
illwieckz force-pushed the illwieckz/conditional-shaders branch from 4accb4a to 8d1e485 Compare September 27, 2025 21:06
Comment thread CMakeLists.txt Resolved
@illwieckz
illwieckz force-pushed the illwieckz/conditional-shaders branch from 8d1e485 to 0783fa8 Compare September 27, 2025 21:29
@slipher

slipher commented Sep 27, 2025

Copy link
Copy Markdown
Member

LGTM

@illwieckz
illwieckz merged commit bd6fa18 into master Sep 28, 2025
1 check passed
@illwieckz
illwieckz deleted the illwieckz/conditional-shaders branch September 28, 2025 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Build A-Client T-Improvement Improvement for an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The shaders.cpp file is always regenerated, forcing to relink the engine client binary

2 participants