Skip to content

Commit d21c52f

Browse files
author
git apple-llvm automerger
committed
Merge commit '6d7e428df611' from llvm.org/release/19.x into stable/20240723
2 parents 04f38ed + 6d7e428 commit d21c52f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compiler-rt/lib/builtins/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -867,10 +867,12 @@ else ()
867867
endif()
868868
endif()
869869
endif()
870-
check_c_source_compiles("_Float16 foo(_Float16 x) { return x; }"
870+
check_c_source_compiles("_Float16 foo(_Float16 x) { return x; }
871+
int main(void) { return 0; }"
871872
COMPILER_RT_HAS_${arch}_FLOAT16)
872873
append_list_if(COMPILER_RT_HAS_${arch}_FLOAT16 -DCOMPILER_RT_HAS_FLOAT16 BUILTIN_CFLAGS_${arch})
873-
check_c_source_compiles("__bf16 foo(__bf16 x) { return x; }"
874+
check_c_source_compiles("__bf16 foo(__bf16 x) { return x; }
875+
int main(void) { return 0; }"
874876
COMPILER_RT_HAS_${arch}_BFLOAT16)
875877
# Build BF16 files only when "__bf16" is available.
876878
if(COMPILER_RT_HAS_${arch}_BFLOAT16)

0 commit comments

Comments
 (0)