Skip to content

Commit e02df9f

Browse files
authored
Propagate BUILD_BFLOAT16 to CFLAGS
1 parent 1c0a8a7 commit e02df9f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cmake/system.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,9 @@ endif()
469469
if (BUILD_COMPLEX16)
470470
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DBUILD_COMPLEX16")
471471
endif()
472+
if (BUILD_BFLOAT16)
473+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DBUILD_BFLOAT16")
474+
endif()
472475
if(NOT MSVC)
473476
set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} ${CCOMMON_OPT}")
474477
endif()

0 commit comments

Comments
 (0)