Skip to content

Commit d8bf783

Browse files
Update LLVMLibCTestRules.cmake
1 parent 519bf7b commit d8bf783

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libc/cmake/modules/LLVMLibCTestRules.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
function(_get_common_test_compile_options output_var c_test flags)
22
_get_compile_options_from_flags(compile_flags ${flags})
3+
# Remove -fno-math-errno if it was added.
4+
if(LIBC_ADD_FNO_MATH_ERRNO)
5+
list(REMOVE_ITEM compile_options "-fno-math-errno")
6+
endif()
37

48
set(compile_options
59
${LIBC_COMPILE_OPTIONS_DEFAULT}

0 commit comments

Comments
 (0)