We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 04f38ed + 6d7e428 commit d21c52fCopy full SHA for d21c52f
compiler-rt/lib/builtins/CMakeLists.txt
@@ -867,10 +867,12 @@ else ()
867
endif()
868
869
870
- check_c_source_compiles("_Float16 foo(_Float16 x) { return x; }"
+ check_c_source_compiles("_Float16 foo(_Float16 x) { return x; }
871
+ int main(void) { return 0; }"
872
COMPILER_RT_HAS_${arch}_FLOAT16)
873
append_list_if(COMPILER_RT_HAS_${arch}_FLOAT16 -DCOMPILER_RT_HAS_FLOAT16 BUILTIN_CFLAGS_${arch})
- check_c_source_compiles("__bf16 foo(__bf16 x) { return x; }"
874
+ check_c_source_compiles("__bf16 foo(__bf16 x) { return x; }
875
876
COMPILER_RT_HAS_${arch}_BFLOAT16)
877
# Build BF16 files only when "__bf16" is available.
878
if(COMPILER_RT_HAS_${arch}_BFLOAT16)
0 commit comments