Skip to content

Commit 9d78eb5

Browse files
authored
[libclc] Enable -fdiscard-value-names build flag to reduce bitcode size (#149016)
The flag reduces nvptx64--nvidiacl.bc size from 10.6MB to 5.2MB.
1 parent 210cf01 commit 9d78eb5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libclc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ foreach( t ${LIBCLC_TARGETS_TO_BUILD} )
405405
-I${CMAKE_CURRENT_SOURCE_DIR}/clc/include
406406
# Error on undefined macros
407407
-Werror=undef
408+
-fdiscard-value-names
408409
)
409410

410411
if( NOT "${cpu}" STREQUAL "" )

0 commit comments

Comments
 (0)