Skip to content

Commit 8fa2b72

Browse files
authored
Refactor LongVectors.cpp to improve binary sizes (microsoft#7776)
This moves some things around so that less code is generated at compile time and some information about data types and operations are looked up at runtime. For a debug build this reduces the size of the DLL by about 1.9MB, and the PDB by about 8.1MB. It also allows us to remove the `/bigobj` compiler flag.
1 parent 6a9fb26 commit 8fa2b72

File tree

2 files changed

+151
-141
lines changed

2 files changed

+151
-141
lines changed

tools/clang/unittests/HLSLExec/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
find_package(TAEF REQUIRED)
44
find_package(D3D12 REQUIRED) # Used for ExecutionTest.cpp.
55

6-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
7-
86
add_clang_library(ExecHLSLTests SHARED
97
ExecutionTest.cpp
108
ShaderOpTest.cpp

0 commit comments

Comments
 (0)