Skip to content

Commit c61374b

Browse files
committed
[compiler-rt] include existing required flags
The original behavior also omitted any existing required flags. Patch this to include them in the _Float16 support check.
1 parent 4e29148 commit c61374b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler-rt/lib/builtins/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,9 @@ else ()
857857
# CMAKE_REQUIRED_FLAGS must be a space separated string
858858
# Join BUILTIN_CFLAGS_${arch} and TARGET_${arch}_CFLAGS as a
859859
# space-separated string.
860-
set(CMAKE_REQUIRED_FLAGS ${BUILTIN_CFLAGS_${arch}} ${TARGET_${arch}_CFLAGS})
860+
list(APPEND CMAKE_REQUIRED_FLAGS
861+
${BUILTIN_CFLAGS_${arch}}
862+
${TARGET_${arch}_CFLAGS})
861863
list(JOIN CMAKE_REQUIRED_FLAGS " " CMAKE_REQUIRED_FLAGS)
862864
message(STATUS "Performing additional configure checks with target flags: ${CMAKE_REQUIRED_FLAGS}")
863865
# For ARM archs, exclude any VFP builtins if VFP is not supported

0 commit comments

Comments
 (0)