-
Notifications
You must be signed in to change notification settings - Fork 712
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CMake option DXC_CODEGEN_EXCEPTIONS_TRAP
When enabled, any hlsl::Exception thrown during code generation and optimization will cause the process to trap. When used in Chrome, the trap will trigger a meaningful crash report.
- Loading branch information
Showing
3 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
/* Disable overriding memory allocators. */ | ||
#cmakedefine DXC_DISABLE_ALLOCATOR_OVERRIDES | ||
/* Generate a trap if an hlsl::Exception is thrown during code generation */ | ||
#cmakedefine DXC_CODEGEN_EXCEPTIONS_TRAP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters