You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We do not currently have an option to disable the clang-format verification for generated sources that get put into the DXC GitHub repository. We have a strict requirement that all code going into DXC be clang-format clean, so we want the build system to also enforce that and behave appropriately with the generated sources.
I don't think we should allow disabling the format check in isolation, but I think we could add an option to disable generating sources that get put into the DXC source tree, and since those are the only ones that get compared for differences that should resolve the build difficulties.
It is important to note that since we have a strict requirement for sources in DXC being clang-format clean, any contributions you make may need to be built with the default build configuration and our pre-merge builds enforce that requirement.
llvm-beanz
added a commit
to llvm-beanz/DirectXShaderCompiler
that referenced
this issue
Jun 27, 2024
This change adds a new CMake configuration option
`HLSL_DISABLE_SOURCE_GENERATION` which allows a user to disable
generating the in-tree sources which contributte to DXC's source
releases. This option should only be used by users building DXC and not
modifying it.
Resolvesmicrosoft#6728
What is the issue you're encountering?
When I build the
dxc
target from source as a subdirectory of my codebase, I get these errors:A few more targets also fail with this same error. It still produces
dxc.exe
anddxcompiler.dll
. Is it possible to turn off the clang-format checks?Steps to Reproduce (if applicable)
Environment
dxcompiler.dll: 1.8 - 1.8.0.2207 (master, 452045c6f-dirty)
cmake version 3.28.3-msvc11
MSVC 19.40.33811.0
The text was updated successfully, but these errors were encountered: